import os from app.core._config import CONFIG_FILE from app.core.models._config import ConfigFile if not os.path.exists(CONFIG_FILE): with open(CONFIG_FILE, 'w') as f: f.write('{}') active_config = ConfigFile(CONFIG_FILE)