misc/build_helpers/show-tool-versions.py: look for zetuptoolz egg in the current directory, not the parent.

This commit is contained in:
david-sarah 2010-11-07 15:36:15 -08:00
parent f7caef635f
commit 901690a029

View File

@ -7,7 +7,7 @@ try:
import pkg_resources import pkg_resources
except ImportError: except ImportError:
import glob import glob
eggz = glob.glob(os.path.join('..', 'setuptools-*.egg')) eggz = glob.glob('setuptools-*.egg')
if len(eggz) > 0: if len(eggz) > 0:
egg = os.path.realpath(eggz[0]) egg = os.path.realpath(eggz[0])
print >>sys.stderr, "Inserting egg on sys.path: %r" % (egg,) print >>sys.stderr, "Inserting egg on sys.path: %r" % (egg,)