import sys import pathlib root_path = pathlib.Path(__file__).parent.parent sys.path.append(root_path) from config import Config Config.load_config(root_path + "/config.toml") Config.set("server.debug", True)