sf.configuration.find_config_file

find_config_file(filename='config.toml')[source]

Get the filepath of the first configuration file found from the defined configuration directories (if any).

Note

The following directories are checked (in the following order):

  • The current working directory

  • The directory specified by the environment variable SF_CONF (if specified)

  • The user configuration directory (if specified)

Keyword Arguments

filename (str) – the configuration file to look for

Returns

the filepath to the configuration file or None, if

no file was found

Return type

Union[str, None]