You can add this after your script "> file.txt"

Example:

<prompt>:you_script.py >korv.txt

Then it will your print to the korv file..



/HejHopp

"Johan Lindvall" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> 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. 



_______________________________________________
Python-win32 mailing list
Python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to