Test for Pythonwin?
Roger Miller
roger.miller at nova-sol.com
Fri Jul 31 10:22:56 EDT 2009
On Jul 31, 2:09 am, "steve" <st... at nospam.au> wrote:
> 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?
I've used
if sys.stdin.fileno() < 0:
This is not precisely a test for pythonwin, but indicates whether
standard streams are available, which is usually what I really
want to know.
More information about the Python-list
mailing list