[python-win32] GetOpenFileNameW & InitialDir
Paul Moore
p.f.moore at gmail.com
Wed May 9 23:42:36 CEST 2007
On 09/05/07, Michel Claveau <mc at mclaveau.com> wrote:
> 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.
You're using the ...W form. Shouldn't you therefore be using a unicode
string for InitialDir?
Paul.
More information about the Python-win32
mailing list