]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
misc/build_helpers/test-with-fake-pkg.py: look for eggs in the parent of the src...
authordavid-sarah <david-sarah@jacaranda.org>
Sat, 30 Oct 2010 03:43:03 +0000 (20:43 -0700)
committerdavid-sarah <david-sarah@jacaranda.org>
Sat, 30 Oct 2010 03:43:03 +0000 (20:43 -0700)
misc/build_helpers/test-with-fake-pkg.py

index dbd970c3d4b2f09731efdc9a72f849ba6cf1d87c..a663ed49f069155a55fa4f9ac65fa2fd5876da46 100644 (file)
@@ -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))