Detect PythonWin?

Roger Upole rupole at hotmail.com
Sat Aug 2 00:18:12 EDT 2003


Try this:
>>> import win32ui
>>> win32ui.GetCommandLine()
'"C:\\Python23\\Pythonwin.exe" '
  hth
    Roger


"Martin Bless" <mb at muenster.de> wrote in message
news:3f29fe44.104328 at news.muenster.de...
> IMHO PythonWin is great help in developing.
>
> How can I do something like:
>
> if detect("running on PythonWin"):
>     pass
>     # fake arguments ...
> else:
>     "proceed normal"
>
> ?
>
> Martin






More information about the Python-list mailing list