Advertisement
Guest User

Untitled

a guest
Jan 16th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.37 KB | None | 0 0
  1. def get_user_settings(chat_id, option):
  2.     with conf_locker:
  3.         settings_filename = 'id%s.conf' % str(chat_id)
  4.         path_settings_file = os.path.join(config.PATH_SETTINGS_DIR, settings_filename)
  5.         user_settings = SafeConfigParser()
  6.         user_settings.read(path_settings_file)
  7.         value = user_settings.get(str(chat_id), str(option))
  8.         return value
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement