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:
3c04852
)
bin/allmydata-tahoe: also update PYTHONPATH so that child processes (like twistd...
author
Brian Warner
<warner@allmydata.com>
Wed, 6 Jun 2007 18:36:48 +0000
(11:36 -0700)
committer
Brian Warner
<warner@allmydata.com>
Wed, 6 Jun 2007 18:36:48 +0000
(11:36 -0700)
bin/allmydata-tahoe
patch
|
blob
|
history
diff --git
a/bin/allmydata-tahoe
b/bin/allmydata-tahoe
index 433095bad90932ce83e003d762b9392baf5185be..53ad00741f61eec2ab3b513876756a19e90ed076 100644
(file)
--- a/
bin/allmydata-tahoe
+++ b/
bin/allmydata-tahoe
@@
-20,6
+20,14
@@
if len(where) >= 2 and where[-2] == "bin":
# we've found our home
libdir = os.path.join(base, "instdir", "lib")
sys.path.insert(0, libdir)
+ # also update PYTHONPATH so that child processes (like twistd) will
+ # use this too
+ pp = os.environ.get("PYTHONPATH")
+ if pp:
+ pp = libdir + ":" + pp
+ else:
+ pp = libdir
+ os.environ["PYTHONPATH"] = pp
from allmydata.scripts import runner
runner.run()