mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-12-11 16:00:47 -07:00
Stop $PYTHONPATH from messing up the search path for DLLs.
CURA-3418 Cura build on Win 64 fails due to $PYTHONPATH
This commit is contained in:
parent
8237421bcf
commit
8602d984a9
1 changed files with 6 additions and 0 deletions
|
|
@ -17,6 +17,12 @@ if Platform.isLinux(): # Needed for platform.linux_distribution, which is not av
|
|||
libGL = find_library("GL")
|
||||
ctypes.CDLL(libGL, ctypes.RTLD_GLOBAL)
|
||||
|
||||
# When frozen, i.e. installer version, don't let PYTHONPATH mess up the search path for DLLs.
|
||||
if Platform.isWindows() and hasattr(sys, "frozen"):
|
||||
try:
|
||||
del os.environ["PYTHONPATH"]
|
||||
except KeyError: pass
|
||||
|
||||
#WORKAROUND: GITHUB-704 GITHUB-708
|
||||
# It looks like setuptools creates a .pth file in
|
||||
# the default /usr/lib which causes the default site-packages
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue