ApplicationMetadata.py 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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_APP_NAME = "cura"
  7. DEFAULT_CURA_DISPLAY_NAME = "Ultimaker Cura"
  8. DEFAULT_CURA_VERSION = "master"
  9. DEFAULT_CURA_BUILD_TYPE = ""
  10. DEFAULT_CURA_DEBUG_MODE = False
  11. DEFAULT_CURA_SDK_VERSION = "6.3.0"
  12. try:
  13. from cura.CuraVersion import CuraAppName # type: ignore
  14. if CuraAppName == "":
  15. CuraAppName = DEFAULT_CURA_APP_NAME
  16. except ImportError:
  17. CuraAppName = DEFAULT_CURA_APP_NAME
  18. try:
  19. from cura.CuraVersion import CuraAppDisplayName # type: ignore
  20. if CuraAppDisplayName == "":
  21. CuraAppDisplayName = DEFAULT_CURA_DISPLAY_NAME
  22. except ImportError:
  23. CuraAppDisplayName = DEFAULT_CURA_DISPLAY_NAME
  24. try:
  25. from cura.CuraVersion import CuraVersion # type: ignore
  26. if CuraVersion == "":
  27. CuraVersion = DEFAULT_CURA_VERSION
  28. except ImportError:
  29. CuraVersion = DEFAULT_CURA_VERSION # [CodeStyle: Reflecting imported value]
  30. try:
  31. from cura.CuraVersion import CuraBuildType # type: ignore
  32. except ImportError:
  33. CuraBuildType = DEFAULT_CURA_BUILD_TYPE
  34. try:
  35. from cura.CuraVersion import CuraDebugMode # type: ignore
  36. except ImportError:
  37. CuraDebugMode = DEFAULT_CURA_DEBUG_MODE
  38. # Each release has a fixed SDK version coupled with it. It doesn't make sense to make it configurable because, for
  39. # example Cura 3.2 with SDK version 6.1 will not work. So the SDK version is hard-coded here and left out of the
  40. # CuraVersion.py.in template.
  41. CuraSDKVersion = "6.3.0"