Test for Pythonwin?

steve steve at nospam.au
Mon Aug 3 04:27:22 CEST 2009

"steve" <steve at nospam.au> wrote in message 
news:4a728aac$0$9744$5a62ac22 at per-qv1-newsreader-01.iinet.net.au...
> Is there a good way to check if a script is running inside Pythonwin?
> Perhaps a property or method that is exposed by that environment?
> or, alternatively, is there a better place to ask :-)
> Steven

> 'pywin' in sys.modules

Didn't want to check for redirection because my redirection code is in
a different thread, and I'd have to think about thread synchronization as

Thanks guys,

More information about the Python-list mailing list