Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfieldOfView <aldo@fieldofview.com>2019-01-18 14:22:07 +0300
committerfieldOfView <aldo@fieldofview.com>2019-01-18 14:22:07 +0300
commit9d02086585c2e05a44e96b75cc2c1475417ca076 (patch)
tree17ec79dd230fb392c05b82ddb4d97a02d1de3be3 /cura_app.py
parent7b1e20c95549a430a0751234c122ec38d26053d5 (diff)
Get app name from ApplicationMetaData
Diffstat (limited to 'cura_app.py')
-rwxr-xr-xcura_app.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/cura_app.py b/cura_app.py
index bd6136f982..3224a5b99b 100755
--- a/cura_app.py
+++ b/cura_app.py
@@ -9,6 +9,7 @@ import os
import sys
from UM.Platform import Platform
+from cura.ApplicationMetadata import CuraAppName
parser = argparse.ArgumentParser(prog = "cura",
add_help = False)
@@ -20,11 +21,6 @@ parser.add_argument("--debug",
known_args = vars(parser.parse_known_args()[0])
if not known_args["debug"]:
- try:
- from cura.CuraVersion import CuraAppName # type: ignore
- except ImportError:
- CuraAppName = "cura"
-
def get_cura_dir_path():
if Platform.isWindows():
return os.path.expanduser("~/AppData/Roaming/" + CuraAppName)