[pypy-commit] pypy default: add top level path to callable files
mattip
noreply at buildbot.pypy.org
Tue Jan 22 17:20:11 CET 2013
Author: mattip <matti.picus at gmail.com>
Branch:
Changeset: r60346:955fb7e3402f
Date: 2013-01-22 18:19 +0200
http://bitbucket.org/pypy/pypy/changeset/955fb7e3402f/
Log: add top level path to callable files
diff --git a/pypy/test_all.py b/pypy/test_all.py
--- a/pypy/test_all.py
+++ b/pypy/test_all.py
@@ -23,7 +23,8 @@
if len(sys.argv) == 1 and os.path.dirname(sys.argv[0]) in '.':
print >> sys.stderr, __doc__
sys.exit(2)
-
+ #Add toplevel repository dir to sys.path
+ sys.path.insert(0,os.path.dirname(os.path.dirname(__file__)))
import pytest
import pytest_cov
sys.exit(pytest.main(plugins=[pytest_cov]))
diff --git a/pypy/tool/release/package.py b/pypy/tool/release/package.py
--- a/pypy/tool/release/package.py
+++ b/pypy/tool/release/package.py
@@ -11,8 +11,10 @@
import shutil
import sys
+import os
+#Add toplevel repository dir to sys.path
+sys.path.insert(0,os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(__file__)))))
import py
-import os
import fnmatch
from rpython.tool.udir import udir
More information about the pypy-commit
mailing list