gooderp18绿色标准版
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

37 行
949B

  1. ##########################################################################
  2. #
  3. # pgAdmin 4 - PostgreSQL Tools
  4. #
  5. # Copyright (C) 2013 - 2020, The pgAdmin Development Team
  6. # This software is released under the PostgreSQL Licence
  7. #
  8. ##########################################################################
  9. import os
  10. import sys
  11. if sys.version_info < (3, 4):
  12. raise Exception('This application must be run under Python 3.4 or later.')
  13. import builtins
  14. root = os.path.dirname(os.path.realpath(__file__))
  15. if sys.path[0] != root:
  16. sys.path.insert(0, root)
  17. # Ensure the global server mode is set.
  18. builtins.SERVER_MODE = True
  19. import config
  20. # When running it as a WSGI application, directory for the configuration file
  21. # must present.
  22. if not os.path.exists(os.path.dirname(config.SQLITE_PATH)):
  23. raise Exception(
  24. """
  25. Required configuration file is not present!
  26. Please run setup.py first!"""
  27. )
  28. from pgAdmin4 import app as application
上海开阖软件有限公司 沪ICP备12045867号-1