mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-26 16:11:08 +00:00
bin/allmydata-tahoe: also update PYTHONPATH so that child processes (like twistd) will work
This commit is contained in:
parent
3c0485204e
commit
e5fdf0daca
@ -20,6 +20,14 @@ if len(where) >= 2 and where[-2] == "bin":
|
|||||||
# we've found our home
|
# we've found our home
|
||||||
libdir = os.path.join(base, "instdir", "lib")
|
libdir = os.path.join(base, "instdir", "lib")
|
||||||
sys.path.insert(0, libdir)
|
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
|
from allmydata.scripts import runner
|
||||||
runner.run()
|
runner.run()
|
||||||
|
Loading…
Reference in New Issue
Block a user