mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 15:44:04 -06:00
Ensure sane defaults for the ApplicationMetada when making builds
This commit is contained in:
parent
1b7b302f42
commit
7c7f6a1f03
1 changed files with 6 additions and 0 deletions
|
@ -12,11 +12,15 @@ DEFAULT_CURA_SDK_VERSION = "6.0.0"
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from cura.CuraVersion import CuraAppDisplayName # type: ignore
|
from cura.CuraVersion import CuraAppDisplayName # type: ignore
|
||||||
|
if CuraAppDisplayName == "":
|
||||||
|
CuraAppDisplayName = DEFAULT_CURA_DISPLAY_NAME
|
||||||
except ImportError:
|
except ImportError:
|
||||||
CuraAppDisplayName = DEFAULT_CURA_DISPLAY_NAME
|
CuraAppDisplayName = DEFAULT_CURA_DISPLAY_NAME
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from cura.CuraVersion import CuraVersion # type: ignore
|
from cura.CuraVersion import CuraVersion # type: ignore
|
||||||
|
if CuraVersion == "":
|
||||||
|
CuraVersion = DEFAULT_CURA_VERSION
|
||||||
except ImportError:
|
except ImportError:
|
||||||
CuraVersion = DEFAULT_CURA_VERSION # [CodeStyle: Reflecting imported value]
|
CuraVersion = DEFAULT_CURA_VERSION # [CodeStyle: Reflecting imported value]
|
||||||
|
|
||||||
|
@ -32,5 +36,7 @@ except ImportError:
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from cura.CuraVersion import CuraSDKVersion # type: ignore
|
from cura.CuraVersion import CuraSDKVersion # type: ignore
|
||||||
|
if CuraSDKVersion == "":
|
||||||
|
CuraSDKVersion = DEFAULT_CURA_SDK_VERSION
|
||||||
except ImportError:
|
except ImportError:
|
||||||
CuraSDKVersion = DEFAULT_CURA_SDK_VERSION
|
CuraSDKVersion = DEFAULT_CURA_SDK_VERSION
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue