settings.py 843 B

1234567891011121314151617181920212223242526272829303132333435
  1. import time
  2. import os
  3. import inspect
  4. import sys
  5. def get_script_dir(follow_symlinks=True):
  6. if getattr(sys, 'frozen', False):
  7. path = os.path.abspath(sys.executable)
  8. else:
  9. path = inspect.getabsfile(get_script_dir)
  10. if follow_symlinks:
  11. path = os.path.realpath(path)
  12. return os.path.dirname(path)
  13. BASE_FOLDER = get_script_dir()
  14. ADDONS_FOLDER = 'addons'
  15. DRP_FOLDER = 'drp'
  16. STATUS_FOLDER = 'status'
  17. ADDONS_FILE_BLACKLIST = ['__pycache__']
  18. DRP_IS_RUNNING = True
  19. DRP_THREAD = None
  20. DRP_ADDON_THREAD = None
  21. STATUS_ADDON_THREAD = None
  22. DRP_CONFIG = {
  23. 'details': 'Discord Rich Presence changer',
  24. 'large_image_key': 'drpc_avatar',
  25. 'start_timestamp': int(time.time())
  26. }
  27. DRP_UPDATE_TIME = 1
  28. DRP_DEFAULT_APP_ID = 808725586230771752
  29. CONFIG = {}
  30. CURR_USER = {}