From: david-sarah Date: Sat, 30 Oct 2010 03:43:03 +0000 (-0700) Subject: misc/build_helpers/test-with-fake-pkg.py: look for eggs in the parent of the src... X-Git-Tag: trac-4800~18 X-Git-Url: https://git.rkrishnan.org/pf/content/en/service/sitemap.html?a=commitdiff_plain;h=7cec440a14745159f191784bec9e492672f05c7f;p=tahoe-lafs%2Ftahoe-lafs.git misc/build_helpers/test-with-fake-pkg.py: look for eggs in the parent of the src directory. refs #1190 --- diff --git a/misc/build_helpers/test-with-fake-pkg.py b/misc/build_helpers/test-with-fake-pkg.py index dbd970c3..a663ed49 100644 --- a/misc/build_helpers/test-with-fake-pkg.py +++ b/misc/build_helpers/test-with-fake-pkg.py @@ -27,5 +27,6 @@ except OSError: os.chdir('src') trial=os.path.join(os.getcwd(), '..', 'misc', 'build_helpers', 'run_trial.py') os.environ['PATH']=os.getcwd()+os.pathsep+os.environ['PATH'] -os.environ['PYTHONPATH']=os.pathsep+pkgdirname+os.pathsep+os.pathsep.join(glob.glob('*.egg'))+os.pathsep+os.environ.get('PYTHONPATH','') +eggs = [os.path.realpath(p) for p in glob.glob(os.path.join('..', '*.egg'))] +os.environ['PYTHONPATH']=os.pathsep+pkgdirname+os.pathsep+os.pathsep.join(eggs)+os.pathsep+os.environ.get('PYTHONPATH','') sys.exit(subprocess.call([sys.executable, trial, testsuite], env=os.environ))