mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-31 08:25:35 +00:00
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:
parent
27a0d59308
commit
7fdcbddbbc
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user