Just a stupid mistake

.reverse() does not return anything (None)
This commit is contained in:
Thomas-Karl Pietrowski 2016-04-21 20:23:07 +02:00
parent 3a61cf3152
commit 7d2b329e78

View File

@ -15,7 +15,7 @@ import sys
# incompatibility issues with libArcus # incompatibility issues with libArcus
if "PYTHONPATH" in os.environ.keys(): # If PYTHONPATH is used if "PYTHONPATH" in os.environ.keys(): # If PYTHONPATH is used
PYTHONPATH = os.environ["PYTHONPATH"].split(os.pathsep) # Get the value, split it.. 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 for PATH in PYTHONPATH: # Now beginning with the last PATH
PATH_real = os.path.realpath(PATH) # Making the the path "real" 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.. if PATH_real in sys.path: # This should always work, but keep it to be sure..