mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-14 18:27:51 -06:00
Merge branch 'pythonpath-fix-reworked' of https://github.com/thopiekar/Cura into pythonpath-fix-reworked
This commit is contained in:
commit
8c0d7aea8a
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue