Finding the "home" folder [Linux/Windows]

Andrew achin at eminence32.cjb.net
Mon Nov 3 04:07:20 CET 2003


dont forget the different windows operating systems:

windows 98/me: c:\my documents\username
windows NT: c:\winnt\profiles\username
windows xp/2k: c:\documents and settings\username

you might have to check the OS type and version, and go from there...

-andrew

On Sat, 01 Nov 2003 22:32:08 +0100, Luca T. <lucat at despammed.com> wrote:

> Hello,
> i need a way to find the home folder of the current user no matter if i 
> am
> in Linux or Windows for instance:
> * Linux: /home/username
> * Windows: C:\Documents and Settings\username
>
> [of course this might change]
>
> Is there any general way to do this?
>
> Thank you,
>   Luca



-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/




More information about the Python-list mailing list