]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
bin/allmydata-tahoe: fix handling of PYTHONPATH, we were missing an os.pathsep
authorBrian Warner <warner@lothar.com>
Mon, 17 Sep 2007 10:43:22 +0000 (03:43 -0700)
committerBrian 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

index 8e52fed587fbd60034d41e0479742af6e25a5a08..d15064300a363982b2e64c752051d67949b26b69 100644 (file)
@@ -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