nicetoolbox.utils.filehandling.load_config

nicetoolbox.utils.filehandling.load_config(config_file: str) dict[source]

Load a configuration file in YAML or TOML format.

Parameters:

config_file (str) – The path to the configuration file.

Returns:

The configuration data loaded from the file.

Return type:

dict

Raises:

NotImplementedError – If the file type is not supported.

Note

If the operating system is Windows, the paths in the configuration data will be converted to Windows format.