From: Zooko O'Whielacronx Date: Thu, 11 Jun 2009 19:32:14 +0000 (-0700) Subject: setup: run the same "make quicktest" on Windows as on non-Windows X-Git-Tag: trac-4000~90 X-Git-Url: https://git.rkrishnan.org/pf/content/en/nxhtml.html?a=commitdiff_plain;h=2a51a7bb900d512f247c10b90e53868bd561c033;p=tahoe-lafs%2Ftahoe-lafs.git setup: run the same "make quicktest" on Windows as on non-Windows I checked and it behaves about as well on Windows as the previous version did. --- diff --git a/misc/run-with-pythonpath.py b/misc/run-with-pythonpath.py index d402f7c5..9aee7fa6 100644 --- a/misc/run-with-pythonpath.py +++ b/misc/run-with-pythonpath.py @@ -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)