discover_config_files#

discover_config_files(script_dir: Path, *, include_home_dir: bool = True, lookup_depth: int = 2) Generator[Path, None, None][source]#

Find config files in the users home folder and the current working dir and parents.

Parameters:
  • script_dir (Path) – Path to the current scripts/notebooks parent folder.

  • include_home_dir (bool) – Where or not to include the users home folder in the config lookup. Defaults to True

  • lookup_depth (int) – Depth at which to look for configs in parent folders of script_dir. If set to 1 only script_dir will be considered as config dir. Defaults to 2.

Yields:

Path