mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-05-02 17:12:59 +00:00
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:
parent
808f851589
commit
b3b94d24df
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user