Automatically creating a HOME environ variable on Windows?

Maciej Dziardziel fiedzia at fiedzia.prv.pl
Sat Oct 29 12:43:44 EDT 2005


jim.eggleston at gmail.com wrote:

> Cool, even better. So what's best, having code to add HOME
> (=USERPROFILE) to os.environ, or change the various places that HOME is
> used to check for USERPROFILE?

Best solution would be to have portable function that returns
user home directory and knows about all platfom quirks.

-- 
Maciej "Fiedzia" Dziardziel (fiedzia (at) fiedzia (dot) prv (dot) pl)
www.fiedzia.prv.pl

If you lost your left arm, your right arm would be left.




More information about the Python-list mailing list