diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2000-05-02 22:29:46 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2000-05-02 22:29:46 (GMT) |
commit | 0a4f1ff64eeb50cdf0b81bd4cff5b2e1d159daa5 (patch) | |
tree | 0092d57f50b2fd21d86e3496b81a924943d12978 | |
parent | 7d64b48eafea227f61433d125315d7b40bf47682 (diff) | |
download | cpython-0a4f1ff64eeb50cdf0b81bd4cff5b2e1d159daa5.zip cpython-0a4f1ff64eeb50cdf0b81bd4cff5b2e1d159daa5.tar.gz cpython-0a4f1ff64eeb50cdf0b81bd4cff5b2e1d159daa5.tar.bz2 |
patches from Mark Hammond
compile.py:
On Windows, use 'nul' instead of '/dev/null'.
test.py:
Use double-quotes for the command-line, as Windows doesnt recognise
singles.
-rw-r--r-- | Tools/compiler/compile.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Tools/compiler/compile.py b/Tools/compiler/compile.py index 7d6facf..5d82c3d 100644 --- a/Tools/compiler/compile.py +++ b/Tools/compiler/compile.py @@ -11,7 +11,10 @@ def main(): VERBOSE = 1 visitor.ASTVisitor.VERBOSE = visitor.ASTVisitor.VERBOSE + 1 if k == '-q': - f = open('/dev/null', 'wb') + if sys.platform[:3]=="win": + f = open('nul', 'wb') # /dev/null fails on Windows... + else: + f = open('/dev/null', 'wb') sys.stdout = f if not args: print "no files to compile" |