Python Enviroment Variables

Discussion in 'Python' started by Ruchika, Sep 9, 2004.

  1. Ruchika

    Ruchika Guest

    Hi,

    How can i get/set environment variables in Python? I am trying to run
    Perforce commands from Python script but am unsuccesful. Want to make
    sure that Perforce is in the path. How can I get/set the
    Environment/Path variables from within the script?

    Thanks,
    Ruchika
     
    Ruchika, Sep 9, 2004
    #1
    1. Advertising

  2. Ruchika

    Miki Tebeka Guest

    Hello Ruchika,

    > How can i get/set environment variables in Python? I am trying to run
    > Perforce commands from Python script but am unsuccesful. Want to make
    > sure that Perforce is in the path. How can I get/set the
    > Environment/Path variables from within the script?

    http://docs.python.org/lib/os-procinfo.html

    Reading the documentation is helpful ;-)

    Bye.
    --
    ------------------------------------------------------------------------
    Miki Tebeka <>
    http://tebeka.spymac.net
    The only difference between children and adults is the price of the toys
     
    Miki Tebeka, Sep 9, 2004
    #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. =?Utf-8?B?TmV3Ymll?=

    HttpSessionState.Abandon() from ASP Enviroment?

    =?Utf-8?B?TmV3Ymll?=, May 31, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    551
    Nicole Calinoiu
    May 31, 2004
  2. Brian Beck
    Replies:
    1
    Views:
    330
    =?iso-8859-1?Q?Tom=E1s_Rodriguez_Orta?=
    Apr 8, 2006
  3. Nelson
    Replies:
    4
    Views:
    315
    Gavin Deane
    Dec 14, 2006
  4. Replies:
    0
    Views:
    299
  5. Girish
    Replies:
    4
    Views:
    116
    Girish
    Mar 14, 2007
Loading...

Share This Page