Re: Detecting a GUI session

2009-01-07 Thread Christian Heimes
Leith Bade schrieb: > I would like to know whether my GUI program is being run under python or > pythonw. > > I would like to know this so I can redirect stderr when their is no > console window (pythonw) otherwise leave it spitting to the console > window (python). > > This is because I debug

Detecting a GUI session

2009-01-07 Thread Leith Bade
I would like to know whether my GUI program is being run under python or pythonw. I would like to know this so I can redirect stderr when their is no console window (pythonw) otherwise leave it spitting to the console window (python). This is because I debug using python while the customer rele