]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
setup: we also need to include .egg's in the CWD in our search path, because if we...
authorZooko O'Whielacronx <zooko@zooko.com>
Sat, 22 Dec 2007 18:04:24 +0000 (11:04 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Sat, 22 Dec 2007 18:04:24 +0000 (11:04 -0700)
It would be nice to figure out a way to force them to all appear in support/ where they belong.

misc/find-dep-eggs.py

index 97bfc3d8bf45abb57906a4eb038e9ec011e25944..ef6071ea8003a57e1f47ed5c41432b73d9342aa8 100644 (file)
@@ -14,4 +14,10 @@ if os.path.exists(support_lib):
         if fn.endswith(".egg"):
             path.append(os.path.abspath(os.path.join(support_lib, fn)))
 
+# We also need to include .egg's in the CWD, because those are placed there by
+# libraries that we've installed if *they* require them.
+for fn in os.listdir("."):
+    if fn.endswith(".egg"):
+        path.append(os.path.abspath(os.path.join(support_lib, fn)))
+
 print os.pathsep.join(path)