diff options
author | Lipu Fei <lipu.fei815@gmail.com> | 2019-09-04 20:21:47 +0300 |
---|---|---|
committer | Lipu Fei <lipu.fei815@gmail.com> | 2019-09-04 20:22:02 +0300 |
commit | 1e1ae95c60813804c298fb31f2af2864b4490b12 (patch) | |
tree | 495b63a1e6d14268c7ac1b2469dbafd9a6305415 /cura_app.py | |
parent | b309680fb7602a9d773d8a03166259c2364ad656 (diff) |
Only use DYLD_FALLBACK_LIBRARY_PATH once for trimesh.load
CURA-6739
Diffstat (limited to 'cura_app.py')
-rwxr-xr-x | cura_app.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cura_app.py b/cura_app.py index 44bef048f2..080479ee92 100755 --- a/cura_app.py +++ b/cura_app.py @@ -149,11 +149,14 @@ from cura.CuraApplication import CuraApplication # makes it work. The workaround here uses DYLD_FALLBACK_LIBRARY_PATH. if Platform.isOSX() and getattr(sys, "frozen", False): old_env = os.environ.get("DYLD_FALLBACK_LIBRARY_PATH", "") + # This is where libopenctm.so is in the .app folder. search_path = os.path.join(CuraApplication.getInstallPrefix(), "MacOS") path_list = old_env.split(":") if search_path not in path_list: path_list.append(search_path) os.environ["DYLD_FALLBACK_LIBRARY_PATH"] = ":".join(path_list) + import trimesh.exchange.load + os.environ["DYLD_FALLBACK_LIBRARY_PATH"] = old_env # WORKAROUND: CURA-6739 # Similar CTM file loading fix for Linux, but NOTE THAT this doesn't work directly with Python 3.5.7. There's a fix |