This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author tim.peters
Recipients
Date 2001-09-22.00:29:01
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=31435

Ah!  Good call.  WRT VC's putenv, the MS docs say:

"""
_putenv and _wputenv affect only the environment that is 
local to the current process; you cannot use them to modify 
the command-level environment. That is, these functions 
operate only on data structures accessible to the run-time 
library and not on the environment segment created for a 
process by the operating system. When the current process 
terminates, the environment reverts to the level of the 
calling process (in most cases, the operating-system 
level). However, the modified environment can be passed to 
any new processes created by _spawn, _exec, or system, and 
these new processes get any new items added by _putenv and 
_wputenv. 
"""

Sounds like the msvcrt-level env functions work with a copy 
of the process env block captured at process creation time.

As usual, a Bad Idea to try to use envars on Windows ...
History
Date User Action Args
2007-08-23 13:56:29adminlinkissue463506 messages
2007-08-23 13:56:29admincreate