ApplicationMetadata.py 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. # Copyright (c) 2018 Ultimaker B.V.
  2. # Cura is released under the terms of the LGPLv3 or higher.
  3. # ---------
  4. # General constants used in Cura
  5. # ---------
  6. DEFAULT_CURA_DISPLAY_NAME = "Ultimaker Cura"
  7. DEFAULT_CURA_VERSION = "master"
  8. DEFAULT_CURA_BUILD_TYPE = ""
  9. DEFAULT_CURA_DEBUG_MODE = False
  10. DEFAULT_CURA_SDK_VERSION = "6.0.0"
  11. try:
  12. from cura.CuraVersion import CuraAppDisplayName # type: ignore
  13. except ImportError:
  14. CuraAppDisplayName = DEFAULT_CURA_DISPLAY_NAME
  15. try:
  16. from cura.CuraVersion import CuraVersion # type: ignore
  17. except ImportError:
  18. CuraVersion = DEFAULT_CURA_VERSION # [CodeStyle: Reflecting imported value]
  19. try:
  20. from cura.CuraVersion import CuraBuildType # type: ignore
  21. except ImportError:
  22. CuraBuildType = DEFAULT_CURA_BUILD_TYPE
  23. try:
  24. from cura.CuraVersion import CuraDebugMode # type: ignore
  25. except ImportError:
  26. CuraDebugMode = DEFAULT_CURA_DEBUG_MODE
  27. try:
  28. from cura.CuraVersion import CuraSDKVersion # type: ignore
  29. except ImportError:
  30. CuraSDKVersion = DEFAULT_CURA_SDK_VERSION