from_path#

classmethod Config.from_path(path, **kwargs)#

Read a config object from a path.

Parameters
  • path (Path) – A path to a TOML file containing the config.

  • **kwargs – Overrides values in the resulting config object.

Returns

The config object.

Return type

Config

Raises

FileNotFoundError – No config file was found.