|
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)
|