Detect PythonWin?

Roger Upole rupole at hotmail.com
Sat Aug 2 06:18:12 CEST 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