Is there a way to tell if a script has been run by Pythonw.exe instead of Python.exe?

Graham Dumpleton Graham.Dumpleton at
Fri Oct 19 01:16:26 CEST 2007

On Oct 19, 7:56 am, Metalone <j... at> wrote:
> In particular I want to know how to tell if reading and writing to the
> console can occur.
> Something like
> sys.isConsolePresent()

Have you tried:



More information about the Python-list mailing list