Fredrik Lundh wrote:
> what part of your observations makes you think that the environment isn't
> "captured" (i.e. > copied from the process environment) when the os module is
> imported ?
Answer: the part that was informed by a fundamental misunderstanding on
my part of how the os module obtai
[EMAIL PROTECTED] wrote:
> Do these observations fit with what is stated in section 6.1.1 of the
> Python Library Reference?
yes. what part of your observations makes you think that the
environment isn't "captured" (i.e. copied from the process environ-
ment) when the os module is imported ?
(h
I observed something tangential to this topic, and that is the reason
for this reply. I don't understand when os.environ gets updated. The
'...captured the first time the os mdule is imported...' verbiage from
the following link:
http://www.python.org/dev/doc/newstyle/lib/os-procinfo.html
provi
[EMAIL PROTECTED] wrote:
> O/S: Win2K
> Vsn of Python:2.4
>
> Based on a search of other posts in this group, it appears as though
> os.environ['PATH'] is one way to obtain the PATH environment variable.
>
> My questions:
> 1) is it correct that os.environ['PATH'] contains the PATH environment
>
[EMAIL PROTECTED] wrote:
> Based on a search of other posts in this group, it appears as though
> os.environ['PATH'] is one way to obtain the PATH environment variable.
>
> My questions:
> 1) is it correct that os.environ['PATH'] contains the PATH environment
> variable?
yes.
> 2) are there othe