100 % portable ?

Tim Peters tim.peters at gmail.com
Mon Aug 23 13:57:15 EDT 2004


[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.



More information about the Python-list mailing list