Skip to content

Yaml loader

Shared YAML loading for configuration files.

load_yaml(path)

Load a YAML file after applying configured path substitutions.

Source code in may/utils/yaml_loader.py
 8
 9
10
11
def load_yaml(path):
    """Load a YAML file after applying configured path substitutions."""
    with open(pr.resolve(str(path)), "r", encoding="utf-8-sig") as stream:
        return yaml.safe_load(stream)