Skip to content
Snippets Groups Projects
restful_config.py 399 B
from pathlib import Path

from dynaconf import Dynaconf

config_dir = Path(__file__).parent.resolve()

restful_config = Dynaconf(
    envvar_prefix="CAL_CAL_TOOLS",
    settings_files=[
        config_dir / "restful_config.yaml",
        config_dir / "restful_config.secrets.yaml",
        Path("~/.config/pycalibration/cal_tools/restful_config.yaml").expanduser(),
    ],
    merge_enabled=True,
)