sacn_accout_system/server/cfg.py

12 lines
214 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)