Finding the "home" folder [Linux/Windows]

Andrew achin at
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...


On Sat, 01 Nov 2003 22:32:08 +0100, Luca T. <lucat at> 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:

More information about the Python-list mailing list