Amaury Forgeot d'Arc added the comment:
The proper solution if you use pythonw.exe is to define sys.stdout/sys.stderr
yourself in pythonw.exe::
sys.stdout = open('c:/temp/output.txt', 'w')
IOW, do the redirect from inside the program, don't rely on the shell which (by
design?) does not work correctly with "/subsytem:windows" binaries.
Again, this is a workaround for 2.7, because no backward-compatible fix could
be found.
----------
resolution: -> wont fix
status: open -> closed
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue18298>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com