mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 07:03:56 -06:00
Fix GLTF workaround for OSX
CURA-6739
This commit is contained in:
parent
7e97bc4e17
commit
f2ef363c01
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue