setup: we also need to include .egg's in the CWD in our search path, because if we install a 3rd party library into support/, and *it* installs a library that *it* requires, that one will appear in CWD

It would be nice to figure out a way to force them to all appear in support/ where they belong.
This commit is contained in:
Zooko O'Whielacronx 2007-12-22 11:04:24 -07:00
parent 27a0d59308
commit 7fdcbddbbc

View 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)