From b3b94d24dfec21ee516cfb29532249f01acad0ef Mon Sep 17 00:00:00 2001
From: Brian Warner <warner@lothar.com>
Date: Mon, 17 Sep 2007 03:43:22 -0700
Subject: [PATCH] bin/allmydata-tahoe: fix handling of PYTHONPATH, we were
 missing an os.pathsep which would cause a pre-existing PYTHONPATH to get
 mangled

---
 bin/allmydata-tahoe | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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
-- 
2.45.2