Re: Automatically creating a HOME environ variable on Windows?



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



Relevant Pages

  • Security system value on V5R2
    ... userprofile name. ... Regards, ... Tom ... Prev by Date: ...
    (comp.sys.ibm.as400.misc)
  • Re: UserHomeDir
    ... Wobei HOMEPATH!= USERPROFILE! ... mfg GP ... Prev by Date: ...
    (microsoft.public.de.german.entwickler.dotnet.csharp)
  • Re: SPUser.LoginName returning old name
    ... Shouldn't need to reboot. ... I would look in the db userprofile table a little to see what is being ... Jon ... Prev by Date: ...
    (microsoft.public.sharepoint.portalserver.development)