Commits

mattip committed 955fb7e

add top level path to callable files

Comments (0)

Files changed (2)

     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]))

pypy/tool/release/package.py

 
 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