This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author amaury.forgeotdarc
Recipients amaury.forgeotdarc, techtonik
Date 2013-06-25.16:19:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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.
Date User Action Args
2013-06-25 16:19:36amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, techtonik
2013-06-25 16:19:36amaury.forgeotdarcsetmessageid: <>
2013-06-25 16:19:36amaury.forgeotdarclinkissue18298 messages
2013-06-25 16:19:35amaury.forgeotdarccreate