mesh2scattering.utils#
Contains utility functions for the mesh2scattering package.
Functions:
Return the root directory of the repository as absolute path. |
|
Return the root directory of the repository as absolute path. |
- mesh2scattering.utils.program_root()[source]#
Return the root directory of the repository as absolute path.
This function relies on the correct setting of the environment variable REPOSITORY_ROOT which is set during the setup of the utils module.
- Returns:
root – String containing the root directory
- Return type:
str
- mesh2scattering.utils.repository_root()[source]#
Return the root directory of the repository as absolute path.
This function relies on the correct setting of the environment variable REPOSITORY_ROOT which is set during the setup of the utils module.
- Returns:
root – String containing the root directory
- Return type:
str