chiark
/
gitweb
/
~ianmdlvl
/
cura.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f1a2e34
)
Remove content of PATH variable on windows to prevent dll conflicts
author
Youness Alaoui
<kakaroto@kakaroto.homelinux.net>
Mon, 26 Oct 2015 19:16:19 +0000
(15:16 -0400)
committer
Youness Alaoui
<kakaroto@kakaroto.homelinux.net>
Mon, 26 Oct 2015 19:16:19 +0000
(15:16 -0400)
Fixes T224
Cura/cura.py
patch
|
blob
|
history
diff --git
a/Cura/cura.py
b/Cura/cura.py
index 27bac0d3902f1d2571c0029ffc95adca9288a52d..c6d4e80b0d2cda886f8eb93fd7f7c1a3f35c8bb1 100644
(file)
--- a/
Cura/cura.py
+++ b/
Cura/cura.py
@@
-81,4
+81,15
@@
def main():
app.CuraApp(args).MainLoop()
if __name__ == '__main__':
app.CuraApp(args).MainLoop()
if __name__ == '__main__':
+ import os
+ import sys
+
+ # On Windows, the PATH variable can cause the search path for dlls
+ # to give priority to dlls from other applications and it will cause
+ # the bundled python dlls not to be loaded.
+ # More specifically, anyone with Haskell Platform installed will not
+ # be able to launch Cura because glut32.dll from Haskell is incompatible
+ # with the bundled py-opengl and will cause Cura to crash
+ if sys.platform.startswith('win'):
+ os.environ['PATH'] = ''
main()
main()