wavy.wconfig
Module Contents
Functions
Configuration directory is specified through: |
|
|
Load the YAML configuration file from the current directory or use default. The approach is threefold and shown in order: |
Attributes
- wavy.wconfig.logger
- wavy.wconfig.__get_confdir__()
Configuration directory is specified through:
.env WAVY_CONFIG environment variable XDG configuration directory (wavy)
- wavy.wconfig.load_or_default(name)
Load the YAML configuration file from the current directory or use default. The approach is threefold and shown in order:
check if env ‘WAVY_CONFIG’ is set or specified in .env
check if a config folder exists using xdg
fall back on default files within the package
e.g.:
c = load_or_default('model_specs.yaml')