sacn_accout_system/server/cfg.py

16 lines
306 B
Python

import tomllib
import os
with open("config/config.toml", "rb") as f:
config = tomllib.load(f)
with open(f"lang/{config["common"]["lang"]}.toml", "rb") as f:
lang = tomllib.load(f)
def reload():
global config
with open("config/config.toml", "rb") as f:
config = tomllib.load(f)