mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-30 01:38:55 +00:00
7fdcbddbbc
It would be nice to figure out a way to force them to all appear in support/ where they belong.
24 lines
704 B
Python
24 lines
704 B
Python
#! /usr/bin/python
|
|
|
|
import os.path, sys
|
|
|
|
path = []
|
|
if sys.platform == 'win32':
|
|
support_lib = "support/Lib/site-packages"
|
|
else:
|
|
pyver = "python%d.%d" % (sys.version_info[:2])
|
|
support_lib = "support/lib/%s/site-packages" % pyver
|
|
|
|
if os.path.exists(support_lib):
|
|
for fn in os.listdir(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)
|