On Sat, 29 Oct 2005 18:43:44 +0200, Maciej Dziardziel <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] 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.
Why is that better than Python creating a HOME in os.environ, if it doesn't already exist? I can think of a few reasons it's better, and a few reasons it's worse. /Jorgen -- // Jorgen Grahn <jgrahn@ Ph'nglui mglw'nafh Cthulhu \X/ algonet.se> R'lyeh wgah'nagl fhtagn! -- http://mail.python.org/mailman/listinfo/python-list