bin/allmydata-tahoe: fix handling of PYTHONPATH, we were missing an os.pathsep

which would cause a pre-existing PYTHONPATH to get mangled
This commit is contained in:
Brian Warner 2007-09-17 03:43:22 -07:00
parent 808f851589
commit b3b94d24df

View File

@ -36,7 +36,7 @@ if len(where) >= 2 and where[-2] == "bin":
# use this too
pp = os.environ.get("PYTHONPATH")
if pp:
pp = srcdir + os.pathsep + pp + os.pathsep.join(support_eggs)
pp = os.pathsep.join([srcdir] + pp.split(os.pathsep) + support_eggs)
else:
pp = os.pathsep.join([srcdir] + support_eggs)
os.environ["PYTHONPATH"] = pp