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:
authorLipu Fei <lipu.fei815@gmail.com>2019-09-04 17:39:06 +0300
committerLipu Fei <lipu.fei815@gmail.com>2019-09-04 17:39:06 +0300
commitf2ef363c015958c474e20760c224ddafc9d3c35d (patch)
tree936d42159dc71cab0d116d7dce910c6d85042477 /cura_app.py
parent7e97bc4e17aecadd97b634afc3402f426c80ae8e (diff)
Fix GLTF workaround for OSX
CURA-6739
Diffstat (limited to 'cura_app.py')
-rwxr-xr-xcura_app.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cura_app.py b/cura_app.py
index 63f107a112..42581f134e 100755
--- a/cura_app.py
+++ b/cura_app.py
@@ -148,7 +148,7 @@ from cura.CuraApplication import CuraApplication
# on Mac OS X. Adding the search path to environment variables such as DYLD_LIBRARY_PATH and DYLD_FALLBACK_LIBRARY_PATH
# makes it work. The workaround here uses DYLD_FALLBACK_LIBRARY_PATH.
if Platform.isOSX() and getattr(sys, "frozen", False):
- old_env = os.environ["DYLD_FALLBACK_LIBRARY_PATH"]
+ old_env = os.environ.get("DYLD_FALLBACK_LIBRARY_PATH", "")
search_path = os.path.join(CuraApplication.getInstallPrefix(), "MacOS")
path_list = old_env.split(":")
if search_path not in path_list: