mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-25 15:41:06 +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
|
||||
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()
|
||||
|
Loading…
Reference in New Issue
Block a user