clash-telegram-bot/config.py

17 lines
275 B
Python
Raw Normal View History

2022-03-18 22:25:50 +03:00
from configparser import ConfigParser
CONFIG_FILE ='./config.ini'
data = ConfigParser()
data.read(CONFIG_FILE)
config = dict()
for section in data.sections():
config[section] = dict()
for key, value in data.items(section):
config[section][key] = value