nicetoolbox.configs.config_handler.load_config¶
- nicetoolbox.configs.config_handler.load_config(config_file: str) dict[source]¶
Load a configuration file in TOML format.
- Parameters:
config_file (str) – The path to the configuration file.
- Returns:
The configuration data loaded from the file.
- Return type:
dict
- Raises:
IOError – When an array with no valid (existing).
FileNotFoundError – If the file does not exist.
NotImplementedError – If the file type is not supported.
TomlDecodeError – Error while decoding toml.
Note
If the operating system is Windows, the paths in the configuration data will be converted to Windows format.