files module

Define helper functions to resolve paths and load files.

load_config(config_path)[source]

Load the configuration file.

Parameters:

config_path (str | Path)

Return type:

dict[str, Any]

resolve_path(path)[source]

Try to resole the given path.

  1. If it is absolute, we take it as is.

  2. If not, we look if it is in working dir.

  3. If not, we look if it is in packaged data.

Parameters:

path (str | Path)

Return type:

Path