sacn_comments/server/cfg.py

13 lines
215 B
Python

import tomllib
import os
with open("config/config.toml", "rb") as f:
config = tomllib.load(f)
def reload():
global config
with open("config/config.toml", "rb") as f:
config = tomllib.load(f)