[OT] Home dir under Windows?
Guenter Dannoritzer
dannoritzer at web.de
Thu Oct 26 07:52:16 PDT 2006
Basil Shubin wrote:
> Hi, friends!
>
> Excuse me for offtopic :-)
>
> Under posix compatible OSes I can acquire path to user home dir by:
> os.path.expanduser('~')
>
> and how I can achieve the same thing under Windows 2000/XP?
>
Hi Basil,
have you tried to use it?
When I tried it, it returned a home path, but according the Python
documentation it depends on some environment variables that are set.
The documentation has some more information about it:
http://docs.python.org/lib/module-os.path.html
Cheers,
Guenter
More information about the wxpython-users
mailing list