mattip  committed 955fb7e

add top level path to callable files

  • Participants
  • Parent commits bcf6320

Comments (0)

Files changed (2)

File pypy/

     if len(sys.argv) == 1 and os.path.dirname(sys.argv[0]) in '.':
         print >> sys.stderr, __doc__
+    #Add toplevel repository dir to sys.path
+    sys.path.insert(0,os.path.dirname(os.path.dirname(__file__)))
     import pytest
     import pytest_cov

File pypy/tool/release/

 import shutil
 import sys
+import os
+#Add toplevel repository dir to sys.path
 import py
-import os
 import fnmatch
 from rpython.tool.udir import udir