projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
808f851
)
bin/allmydata-tahoe: fix handling of PYTHONPATH, we were missing an os.pathsep
author
Brian Warner
<warner@lothar.com>
Mon, 17 Sep 2007 10:43:22 +0000
(
03:43
-0700)
committer
Brian Warner
<warner@lothar.com>
Mon, 17 Sep 2007 10:43:22 +0000
(
03:43
-0700)
which would cause a pre-existing PYTHONPATH to get mangled
bin/allmydata-tahoe
patch
|
blob
|
history
diff --git
a/bin/allmydata-tahoe
b/bin/allmydata-tahoe
index 8e52fed587fbd60034d41e0479742af6e25a5a08..d15064300a363982b2e64c752051d67949b26b69 100644
(file)
--- a/
bin/allmydata-tahoe
+++ b/
bin/allmydata-tahoe
@@
-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