From 7c7f6a1f038aa985d857e174fdf835fb476e4681 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Wed, 16 Jan 2019 15:28:16 +0100 Subject: [PATCH] Ensure sane defaults for the ApplicationMetada when making builds --- cura/ApplicationMetadata.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cura/ApplicationMetadata.py b/cura/ApplicationMetadata.py index e2ac4453eb..4cb19edb72 100644 --- a/cura/ApplicationMetadata.py +++ b/cura/ApplicationMetadata.py @@ -12,11 +12,15 @@ DEFAULT_CURA_SDK_VERSION = "6.0.0" try: from cura.CuraVersion import CuraAppDisplayName # type: ignore + if CuraAppDisplayName == "": + CuraAppDisplayName = DEFAULT_CURA_DISPLAY_NAME except ImportError: CuraAppDisplayName = DEFAULT_CURA_DISPLAY_NAME try: from cura.CuraVersion import CuraVersion # type: ignore + if CuraVersion == "": + CuraVersion = DEFAULT_CURA_VERSION except ImportError: CuraVersion = DEFAULT_CURA_VERSION # [CodeStyle: Reflecting imported value] @@ -32,5 +36,7 @@ except ImportError: try: from cura.CuraVersion import CuraSDKVersion # type: ignore + if CuraSDKVersion == "": + CuraSDKVersion = DEFAULT_CURA_SDK_VERSION except ImportError: CuraSDKVersion = DEFAULT_CURA_SDK_VERSION