set DOS environment variable

Dan Upton upton at virginia.edu
Thu Oct 2 17:31:09 CEST 2008


On Thu, Oct 2, 2008 at 11:18 AM, bill <wgrigg at draper.com> wrote:
> Hi all,
>
> Can Python set a DOS environment variable?
>
> TIA,
>
> Bill

I'd look at http://www.python.org/doc/2.5.2/lib/os-procinfo.html .  It
looks like putenv should do what you want.  It might only affect the
current process and things started from it using Popen, though.

-dan



More information about the Python-list mailing list