Merge branch 'pythonpath-fix-reworked' of https://github.com/thopiekar/Cura into pythonpath-fix-reworked

This commit is contained in:
Thomas-Karl Pietrowski 2016-04-19 19:39:04 +02:00
commit 8c0d7aea8a

View File

@ -15,7 +15,7 @@ import sys
# incompatibility issues with libArcus
if "PYTHONPATH" in os.environ.keys(): # If PYTHONPATH is used
if sys.path[1] != os.environ["PYTHONPATH"]: # .. check whether PYTHONPATH is placed incorrectly.
sys.path.remove(os.environ["PYTHONPATH"]) # If so remove that element..
sys.path.remove(os.environ["PYTHONPATH"]) # If so, remove that element..
sys.path.insert(1, os.environ['PYTHONPATH']) # and add it at the correct place again.