sacn_accout_system/server/cfg.py

12 lines
214 B
Python
Raw Normal View History

2024-08-17 11:25:51 +08:00
import tomllib
2024-08-25 21:23:24 +08:00
import os
2024-08-17 11:25:51 +08:00
2024-08-25 21:23:24 +08:00
with open("config/config.toml", "rb") as f:
2024-08-17 11:25:51 +08:00
config = tomllib.load(f)
2024-08-25 20:51:14 +08:00
def reload():
global config
2024-08-25 21:23:24 +08:00
with open("config/config.toml", "rb") as f:
2024-08-25 20:51:14 +08:00
config = tomllib.load(f)