[Python-Dev] sys.path[0]

Mark Hammond mhammond@skippinet.com.au
Wed, 8 Jan 2003 13:11:29 +1100


[Tim]
> [Guido]
> > ...
> > Why would a GUI change the current directory?  That seems pretty
> > broken.
>
> Sure is.  Sean True and Mark Hammond and I all stumbled over
> this in the
> spambayes project while working on the Outlook client.
> Turned out that, on
> Win9x but not 2K (or perhaps it had to do with which version
> and service
> pack level of Outlook too ...), calling some subset of MS
> MAPI functions had

Worse, displaying a standard "open file" dialog will change the current
directory of your app to the current directory of the dialog when closed.

Mark.