ApplicationMetadata.py 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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.0.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. try:
  39. from cura.CuraVersion import CuraSDKVersion # type: ignore
  40. if CuraSDKVersion == "":
  41. CuraSDKVersion = DEFAULT_CURA_SDK_VERSION
  42. except ImportError:
  43. CuraSDKVersion = DEFAULT_CURA_SDK_VERSION