flask_apps/_config.py

5 lines
148 B
Python

import tomllib
from pathlib import Path
_cfg = tomllib.loads((Path(__file__).parent / "config.toml").read_text())
MONGO_URI = _cfg["mongo"]["uri"]