mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-19 04:09:40 +08:00
Merge branch 'pythonpath-fix-reworked' of https://github.com/thopiekar/Cura into pythonpath-fix-reworked
This commit is contained in:
commit
8c0d7aea8a
@ -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.
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user