Commits

Christian Tismer committed 5d967c8

small changes to make this run under Windows, too.
(splitdrive is available on all platforms and does always the right thing)

Comments (0)

Files changed (1)

pypy/tool/test_all.py

 
 if __name__=='__main__':
     path = dirname(abspath(sys.argv[0]))
-    path = path.split(os.sep)
-
+    drive, path = os.path.splitdrive(path)
+    path = path.split(os.sep)
+    
     if 'pypy' not in path:
         raise SystemExit, "Need to be somewhere in pypy-tree"
     
     
     path.insert(0, '/')
     path.append('pypy')
-    path = joinfn('/', *path)
+    path = drive + joinfn('/', *path)
+    print path, dirname(path)
     sys.path.insert(0, dirname(path))
     drive_tests(path)