100 % portable ?

Miki Tebeka miki.tebeka at zoran.com
Wed Aug 25 07:44:18 EDT 2004


Hello Tim,

> [Bernd Kaiser]
> >> You can use os.environ["HOME"], this will return the user's home dir.
>  
> [Dave Cook]
> > Doesn't work in win9x AFAIK.  I do notice that some people are
> > starting to require XP for their apps.
> 
> HOME isn't defined on my vanilla XP box.  HOMEDRIVE and HOMEPATH are, though.
import user
print user.home

Bye.
--
------------------------------------------------------------------------
Miki Tebeka <miki.tebeka at zoran.com>
http://tebeka.spymac.net
The only difference between children and adults is the price of the toys



More information about the Python-list mailing list