import configparser
import os
def get_config(section, key):
config = configparser.ConfigParser()
config.read(os.path.join(APP_PATH, 'config.ini'))
return config
CONFIG = get_config()
# You can use it as CONFIG['section']['key']
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)