def load_config(DOMAIN): CONFIG_PATH = "config/" + DOMAIN global config config = Config() config.load_from_file(CONFIG_PATH) return config, DEVICE