The Python pwd module provides access to getpwnam(3) POSIX API, which can be used to get the home directory for a particular user by username, as well determini
getpwnam(3)
This seems to be only applicable to the current user, but on my (winxp) machine, os.path.expanduser('~') returns my home directory.
os.path.expanduser('~')