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.
This commit is contained in:
Jeremy Hylton 2000-05-02 22:29:46 +00:00
parent 7d64b48eaf
commit 0a4f1ff64e

View file

@ -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"