Detect PythonWin?
Andrew Dalke
adalke at mindspring.com
Fri Aug 1 19:03:43 EDT 2003
Martin Bless:
> but how can my script know it its running from inside PythonWin?
Oops! I misunderstood your question.
In addition to the other answers, you could look at the stack trace
and see if Pythonwin\pywin\framework\interact.py is used.
Of course, that's not guaranteed to give the right answers; just
figured I'ld give an alternative.
Andrew
dalke at dalkescientific.com
More information about the Python-list
mailing list