import json # Config = { # api_token: "xxxxxxxx" # } Config = {} def config_load(): global Config with open('config.json', 'r') as file: Config = json.load(file) config_load() print('Конфигурация загружена.')