Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def get_user_settings(chat_id, option):
- with conf_locker:
- settings_filename = 'id%s.conf' % str(chat_id)
- path_settings_file = os.path.join(config.PATH_SETTINGS_DIR, settings_filename)
- user_settings = SafeConfigParser()
- user_settings.read(path_settings_file)
- value = user_settings.get(str(chat_id), str(option))
- return value
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement