Possible duplicate:
How to set environment variables in Python
My python script that calls many python functions and shell scripts. I want to set an environment variable in Python (the main function of the call) and all child processes, including shell scripts, to see a set of environment variables.
I need to set some environment variables as follows:
DEBUSSY 1 FSDB 1
1 is a number, not a string. Also, how can I read the value stored in the environment variable? (Like DEBUSSY / FSDB in another child python script.)
python environment-variables
user749632 May 11 '11 at 23:16 2011-05-11 23:16
source share