set DOS environment variable

Discussion in 'Python' started by bill, Oct 2, 2008.

  1. bill

    bill Guest

    Hi all,

    Can Python set a DOS environment variable?

    TIA,

    Bill
     
    bill, Oct 2, 2008
    #1
    1. Advertising

  2. bill

    Dan Upton Guest

    On Thu, Oct 2, 2008 at 11:18 AM, bill <> 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
     
    Dan Upton, Oct 2, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ben Fairbank
    Replies:
    2
    Views:
    5,467
  2. john san
    Replies:
    19
    Views:
    750
    Diez B. Roggisch
    Feb 18, 2005
  3. tomhr
    Replies:
    27
    Views:
    1,437
    Mike Wahler
    Jan 12, 2006
  4. Replies:
    5
    Views:
    675
  5. Robert Wallace

    my own perl "dos->unix"/"unix->dos"

    Robert Wallace, Jan 21, 2004, in forum: Perl Misc
    Replies:
    7
    Views:
    293
    Michele Dondi
    Jan 22, 2004
Loading...

Share This Page