ApplicationMetadata.py 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # Copyright (c) 2018 Ultimaker B.V.
  2. # Cura is released under the terms of the LGPLv3 or higher.
  3. # ---------
  4. # Genearl 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. if CuraAppDisplayName == "":
  14. CuraAppDisplayName = DEFAULT_CURA_DISPLAY_NAME
  15. except ImportError:
  16. CuraAppDisplayName = DEFAULT_CURA_DISPLAY_NAME
  17. try:
  18. from cura.CuraVersion import CuraVersion # type: ignore
  19. if CuraVersion == "":
  20. CuraVersion = DEFAULT_CURA_VERSION
  21. except ImportError:
  22. CuraVersion = DEFAULT_CURA_VERSION # [CodeStyle: Reflecting imported value]
  23. try:
  24. from cura.CuraVersion import CuraBuildType # type: ignore
  25. except ImportError:
  26. CuraBuildType = DEFAULT_CURA_BUILD_TYPE
  27. try:
  28. from cura.CuraVersion import CuraDebugMode # type: ignore
  29. except ImportError:
  30. CuraDebugMode = DEFAULT_CURA_DEBUG_MODE
  31. try:
  32. from cura.CuraVersion import CuraSDKVersion # type: ignore
  33. if CuraSDKVersion == "":
  34. CuraSDKVersion = DEFAULT_CURA_SDK_VERSION
  35. except ImportError:
  36. CuraSDKVersion = DEFAULT_CURA_SDK_VERSION