[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] Making A Module
Hi Greg
Thanks, I will try it and add it to my main module and see. I had read a little of it before asking but was only reading it fast and for the first time.
Bruce
----- Original Message -----
From: "Greg Ewing" <greg.ewing@xxxxxxxxxxxxxxxx>
Sent: Tuesday, October 30, 2007 3:49 PM
Subject: Re: [pygame] Making A Module
RR4CLB wrote:
> But, if there is a way to send all error messages to a file I would like to know.
From outside the program, you can redirect standard
error into a file using whatever technique is appropriate
for your platform.
From inside the program, you can replace sys.stderr with
a file object open for writing, e.g.
import sys
sys.stderr = open("my_errors.log", "w")
--
Greg