Path operators¶
commons.path_operators
¶
Functions:
| Name | Description |
|---|---|
get_project_root_dir |
Returns the root dir of the current project. |
get_git_root_dir |
Return the root directory of the git project. |
get_project_root_dir
¶
Returns the root dir of the current project.
This root dir is usually used to search for settings, local data, etc..
If the current project is a Git repository, the root of the Git repository will be returned. Otherwise the current working directory will be returned.
Source code in src/commons/path_operators.py
get_git_root_dir
¶
Return the root directory of the git project.