From: Brian Warner Date: Mon, 17 Sep 2007 10:43:22 +0000 (-0700) Subject: bin/allmydata-tahoe: fix handling of PYTHONPATH, we were missing an os.pathsep X-Git-Tag: allmydata-tahoe-0.6.0~88 X-Git-Url: https://git.rkrishnan.org/pf/content//%22%3C?a=commitdiff_plain;h=b3b94d24dfec21ee516cfb29532249f01acad0ef;p=tahoe-lafs%2Ftahoe-lafs.git bin/allmydata-tahoe: fix handling of PYTHONPATH, we were missing an os.pathsep which would cause a pre-existing PYTHONPATH to get mangled --- diff --git a/bin/allmydata-tahoe b/bin/allmydata-tahoe index 8e52fed5..d1506430 100644 --- 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