bout_runners.utils.paths¶
Contains methods which return common paths.
Functions
Load the BOUT++ directory from the configuration file. |
|
Return the absolute path to the log configuration. |
|
Return the absolute path to the bout_runners configuration. |
|
Return the bout_runners configuration. |
|
Return the absolute path to the bout_runners package. |
|
Return the absolute path to the configurations. |
|
Return the log_file directory. |
|
|
Return the absolute path to the log file path. |
Return the absolute path to the logger configuration. |
-
bout_runners.utils.paths.
get_bout_directory
() → pathlib.Path[source]¶ Load the BOUT++ directory from the configuration file.
- Returns
- bout_pathPath
Path to the BOUT++ repository
-
bout_runners.utils.paths.
get_bout_log_config_path
() → pathlib.Path[source]¶ Return the absolute path to the log configuration.
- Returns
- Path
The path to the bout_runners configuration file
-
bout_runners.utils.paths.
get_bout_runners_config_path
() → pathlib.Path[source]¶ Return the absolute path to the bout_runners configuration.
- Returns
- Path
The path to the bout_runners configuration file
-
bout_runners.utils.paths.
get_bout_runners_configuration
() → configparser.ConfigParser[source]¶ Return the bout_runners configuration.
- Returns
- configConfigParser
The configuration of bout_runners
-
bout_runners.utils.paths.
get_bout_runners_package_path
() → pathlib.Path[source]¶ Return the absolute path to the bout_runners package.
- Returns
- Path
The path to the root directory
-
bout_runners.utils.paths.
get_config_path
() → pathlib.Path[source]¶ Return the absolute path to the configurations.
- Returns
- Path
The path to the configuration directory
-
bout_runners.utils.paths.
get_log_file_directory
() → pathlib.Path[source]¶ Return the log_file directory.
- Returns
- log_file_directoryPath
Path to the log_file directory
-
bout_runners.utils.paths.
get_log_file_path
(log_file_dir: Union[pathlib.Path, NoneType] = None, name: Union[str, NoneType] = None) → pathlib.Path[source]¶ Return the absolute path to the log file path.
- Parameters
- log_file_dirPath or None
Path to the log file directory If None, default log file directory will be used
- namestr or None
Name of the log file If None, current date will be used
- Returns
- log_file_pathPath
The path to the log file