wavy.wconfig

Module Contents

Functions

__get_confdir__()

Configuration directory is specified through:

load_or_default(name)

Load the YAML configuration file from the current directory or use default. The approach is threefold and shown in order:

Attributes

logger

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:

  1. check if env ‘WAVY_CONFIG’ is set or specified in .env

  2. check if a config folder exists using xdg

  3. fall back on default files within the package

e.g.:

c = load_or_default('model_specs.yaml')