[python-win32] Re: GetOpenFileNameW & InitialDir

Roger Upole rwupole at msn.com
Thu May 10 02:58:31 CEST 2007


> Hi!
> 
> I'have a problem with this code :
> 
>     import win32gui
>     fname=win32gui.GetOpenFileNameW(InitialDir="C:\\dev")[0]
>     print fname
> 
> The InitialDir is not set. It's already the last dir opened, and not my 
> request.
> 
> Any idea ?   Thanks by advance.
> 
> Michel Claveau

I can't reproduce the behaviour you describe.  What OS
and versions of Python/Pywin32 are you using ?

         Roger



More information about the Python-win32 mailing list