]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
setup: run the same "make quicktest" on Windows as on non-Windows
authorZooko O'Whielacronx <zooko@zooko.com>
Thu, 11 Jun 2009 19:32:14 +0000 (12:32 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Thu, 11 Jun 2009 19:32:14 +0000 (12:32 -0700)
I checked and it behaves about as well on Windows as the previous version did.

misc/run-with-pythonpath.py

index d402f7c5e77b7faec51607db8166cde2add5b7c5..9aee7fa64af3481df7082ade703a231d2c4ae1ef 100644 (file)
@@ -34,17 +34,13 @@ if oldpp == [""]:
 newpp = os.pathsep.join(oldpp + [supportlib,])
 os.environ['PYTHONPATH'] = newpp
 
-if sys.platform == "win32":
-    command = sys.argv[1:]
-    rc = subprocess.call(command)
-    sys.exit(rc)
-else:
-    from twisted.python.procutils import which
-    cmd = sys.argv[1]
-    if cmd and cmd[0] not in "/~.":
-        cmds = which(cmd)
-        if not cmds:
-            print >>sys.stderr, "'%s' not found on PATH" % (cmd,)
-            sys.exit(-1)
-        cmd = cmds[0]
-    os.execve(cmd, sys.argv[1:], os.environ)
+from twisted.python.procutils import which
+cmd = sys.argv[1]
+if cmd and cmd[0] not in "/~.":
+    cmds = which(cmd)
+    if not cmds:
+        print >>sys.stderr, "'%s' not found on PATH" % (cmd,)
+        sys.exit(-1)
+    cmd = cmds[0]
+
+os.execve(cmd, sys.argv[1:], os.environ)