expanduser on windows and wxGlade

Florian Schulze florian.proff.schulze at gmx.net
Wed Dec 11 08:31:38 EST 2002


Hi,

it seems like os.path.expanduser doesn't work as it should on windows, or I
don't understand how it works.
I get this:
>>> os.path.expanduser("~")
'%USERPROFILE%'
But shouldn't this be expanded to the real path to my userprofile
directory? I stumbled over this, because wxGlade always gives me an error
when it trys to save it's config file at exit. It would be really nice if
someone could enlighten me, or could say it's really a bug.

Regards,
Florian








More information about the Python-list mailing list