def load_config()

in bots/sdlc-slackbot/sdlc_slackbot/config.py [0:0]


def load_config(path: str):
    load_dotenv()

    with open(path) as f:
        cfg = toml.loads(f.read())
        config = Config(**cfg)

    global _CONFIG
    _CONFIG = config
    return _CONFIG