From: Youness Alaoui Date: Mon, 26 Oct 2015 19:16:19 +0000 (-0400) Subject: Remove content of PATH variable on windows to prevent dll conflicts X-Git-Tag: lulzbot-17.11~5 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=f430de51c28074ba47734d4b5a65e3032d0759b1;p=cura.git Remove content of PATH variable on windows to prevent dll conflicts Fixes T224 --- diff --git a/Cura/cura.py b/Cura/cura.py index 27bac0d3..c6d4e80b 100644 --- a/Cura/cura.py +++ b/Cura/cura.py @@ -81,4 +81,15 @@ def 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()