? WinNT sys.stdout and re-direction
Paul D. Lusk
plusk at radford.edu
Sat Jul 1 10:19:27 EDT 2000
I'm new to Python and I'm trying to run some scripts.
System is WinNT, output via sys.stdout.write(). Redirecting output to
file results in any empty file, for example:
At the NT command prompt:
script.py in.txt
writes output to the screen,
but
script.py in.txt>out.txt
gives me a empty out.txt
Could somebody point me in the right direction to fix this?
More information about the Python-list
mailing list