Finding user's home dir

Kartic removethis.kartic.krishnamurthy at gmail.com
Wed Feb 2 22:06:41 EST 2005


Nemesis said the following on 2/2/2005 2:26 PM:
> Hi all, I'm trying to write a multiplatform function that tries to
> 
> def getHomeDir():
>     ''' Try to find user's home directory, otherwise return current directory.'''
> 
> Please, could you test it on your systems and tell me what you got?
> I'd like to know what it returns on different operating systems because
> I'm developing a multiplatform software.
> 
> Thank you all.


Neat!

Works fine on Freebsd 5.3, Python 2.4

Thanks,
-Kartic



More information about the Python-list mailing list