[python-win32] Capturing stdout when running a Python Script

Johan Lindvall johan.lindvall at gmail.com
Fri Oct 27 09:48:23 CEST 2006


Hi,

Is there any way of capturing or displaying stdout when running a
Python script? I know about:

import sys
sys.stdout = open("logfile.txt", "a")

but I don't want to modify my scripts to achieve this.

-- 
/Johan.


More information about the Python-win32 mailing list