qis.get_paths

qis.get_paths(settings_path=None)[source]

Read YAML configuration, with private entries overriding packaged defaults.

Parameters:

settings_path (str | Path | None) – Explicit YAML file; otherwise use settings.yaml beside this module. Cached by file; call get_paths.cache_clear() after editing a file. Changing the selected file takes effect immediately.

Returns:

A fresh dictionary. Directory entries are absolute, except unresolved placeholders. Non-path settings (for example database URLs) are left unchanged.

Raises:
  • FileNotFoundError – The selected YAML file is missing; no silent fallback occurs.

  • ValueError – YAML is malformed or does not contain a mapping.

Return type:

Dict[str, str]