set DOS environment variable

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • bill

    set DOS environment variable

    Hi all,

    Can Python set a DOS environment variable?

    TIA,

    Bill
  • Dan Upton

    #2
    Re: set DOS environment variable

    On Thu, Oct 2, 2008 at 11:18 AM, bill <wgrigg@draper. comwrote:
    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

    Comment

    Working...