[From nobody Thu Jun 29 10:35:10 2006
Return-Path: &lt;crxxtc@gmail.com&gt;
Delivered-To: ipython-user@scipy.net
Received: from localhost (localhost [127.0.0.1])
	by www.scipy.com (Postfix) with ESMTP id 1F8213EB3E
	for &lt;ipython-user@scipy.net&gt;; Mon, 18 Jul 2005 07:23:59 -0500 (CDT)
Received: from www.scipy.com ([127.0.0.1])
	by localhost (scipy.org [127.0.0.1]) (amavisd-new,
	port 10024) with ESMTP id 23106-01 for &lt;ipython-user@scipy.net&gt;;
	Mon, 18 Jul 2005 07:23:57 -0500 (CDT)
Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.200])
	by www.scipy.com (Postfix) with ESMTP id 6FD693EB15
	for &lt;ipython-user@scipy.net&gt;; Mon, 18 Jul 2005 07:23:56 -0500 (CDT)
Received: by rproxy.gmail.com with SMTP id r35so1277259rna
	for &lt;ipython-user@scipy.net&gt;; Mon, 18 Jul 2005 06:23:58 -0700 (PDT)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com;
	h=received:date:from:x-mailer:x-priority:message-id:to:cc:subject:in-reply-to:references:mime-version:content-type:content-transfer-encoding;
	b=h5QxugeqwRdfgKUpdVF8MXmDCQudPE1c1QsRAXcQMa6cn2aiL74aCbIujvjjBsNTuJ+dokczY8lStX+9kkcFdzufGrfoYQ6u4zmZjkVxVvQpBKSoboUoKN78onCH7AMvjkQ0peWCQ/nQMeyBN7sGGJK9E4DoGCuDcVd7MB6yr5k=
Received: by 10.38.12.37 with SMTP id 37mr1800651rnl;
	Mon, 18 Jul 2005 06:23:57 -0700 (PDT)
Received: from dhcp21528.dcri.duke.edu ([152.16.50.215])
	by mx.gmail.com with ESMTP id 79sm823556rnc.2005.07.18.06.23.57;
	Mon, 18 Jul 2005 06:23:57 -0700 (PDT)
Date: Mon, 18 Jul 2005 06:23:56 -0700
From: Jerry McRae &lt;crxxtc@gmail.com&gt;
X-Mailer: The Bat! (v2.11.02) Personal
X-Priority: 3 (Normal)
Message-ID: &lt;366428025.20050718062356@gmail.com&gt;
To: &quot;Fernando Perez Fernando.Perez-at-colorado.edu |Python projects/jml|&quot;
	&lt;ykihifg9tx0t@sneakemail.com&gt;
Cc: IPython-user List &lt;ipython-user@scipy.net&gt;
Subject: Re: [IPython-user] Re[2]: IPython install under Win2000
In-Reply-To: &lt;42DB1631.6000108@colorado.edu&gt;
References: &lt;Mahogany-0.66.0-1736-20050713-184456.00@american.edu&gt;&lt;42D59B1D.9070308@colorado.edu&gt;
	&lt;Mahogany-0.66.0-1736-20050713-221056.00@american.edu&gt;&lt;42D69086.8060803@colorado.edu&gt;
	&lt;Mahogany-0.66.0-456-20050717-174245.00@american.edu&gt;
	&lt;42DB1631.6000108@colorado.edu&gt;
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: by amavisd-new at scipy.org
X-Spambayes-Classification: ham; 0.00
X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on scipy.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,RCVD_BY_IP 
	autolearn=ham version=3.0.3

Hi Fernando,

You &lt;F&gt; wrote on Sunday (7/17/2005 at 7:38 PM) thus about [IPython-user] Re[2]: IPython install under Win2000:

F&gt; Well, the fix is easy enough to apply.  However, it smells a bit fishy to me:
F&gt; why would an environment variable resolve to something else which needs to be
F&gt; re-expanded?  I know that under Windows all kinds of bizarre things are
F&gt; considered normal, but this I find a bit odd.  Environment variables are, at
F&gt; least in my mind, end-values which should be usable as-is.

I agree.

F&gt; So I'd like to hear from those with Win32 expertise if this is really standard
F&gt; practice in the win32 world I should code defensively against.  And if so,  is
F&gt; one level of re-evaluation enough?  Can %USERPROFILE% itself point to
F&gt; %SOMETHINGELSESTILL%? Should I keep expanding all %XXX% forms?

I have been using DOS/Windows since 1983.  I have been using WinXP for
the past several years.  I have no experience with Win2000 or Win ME.
I am not an expert on environment variable standards, and if there
were any, I'm sure Microsoft would violate them.

That being said, I have *never* seen *any* environment variables that
need re-expanding. In fact one cannot set any environment variable to
a macro (I.E. %anothername%) from the command line or a batch file
because the macro will be expanded before assigning the environment
variable.  That would be possible only from a program.  I would
consider that an aberration and any program that does not play by the
same unwritten rules as everyone else.

But then again, I don't know what weirdness Win2000 introduced. Does
anyone know *for sure* what the environment variables look like in a
virgin Win2000 install?

In WinXP Home and Pro there is a USERPROFILE and a HOMEPATH (which is
used as a starting directory when running cmd.exe), but no HOME. So
any HOME environment variable was added by customizing or by another
application.

my $.03
-- 
Jerry
___________________________
A little experience often upsets a lot of theory. -- Cadman


=========
(Python 2.3.5, IPython 0.6.13, Windows XP)


]