Re: Automatically creating a HOME environ variable on Windows?
- From: Jorgen Grahn <jgrahn-nntq@xxxxxxxxxx>
- Date: 31 Oct 2005 00:35:54 GMT
On Sat, 29 Oct 2005 18:43:44 +0200, Maciej Dziardziel <fiedzia@xxxxxxxxxxxxxx> wrote:
> jim.eggleston@xxxxxxxxx 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!
.
- References:
- Re: Automatically creating a HOME environ variable on Windows?
- From: Jarek Zgoda
- Re: Automatically creating a HOME environ variable on Windows?
- Prev by Date: Re: Pickling and unpickling inherited attributes
- Next by Date: Re: Controlling output using print with format string
- Previous by thread: Re: Automatically creating a HOME environ variable on Windows?
- Next by thread: [help]problem with python thread
- Index(es):
Relevant Pages
|