mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-19 04:09:40 +08:00
Just a stupid mistake
.reverse() does not return anything (None)
This commit is contained in:
parent
3a61cf3152
commit
7d2b329e78
@ -15,7 +15,7 @@ import sys
|
||||
# incompatibility issues with libArcus
|
||||
if "PYTHONPATH" in os.environ.keys(): # If PYTHONPATH is used
|
||||
PYTHONPATH = os.environ["PYTHONPATH"].split(os.pathsep) # Get the value, split it..
|
||||
PYTHONPATH = PYTHONPATH.reverse() # and reverse it, because we always insert at 1
|
||||
PYTHONPATH.reverse() # and reverse it, because we always insert at 1
|
||||
for PATH in PYTHONPATH: # Now beginning with the last PATH
|
||||
PATH_real = os.path.realpath(PATH) # Making the the path "real"
|
||||
if PATH_real in sys.path: # This should always work, but keep it to be sure..
|
||||
|
Loading…
x
Reference in New Issue
Block a user