How Do I Set Environment Variables ?
Shengquan Liang
sliang at florida-lnx.cc.gatech.edu
Fri May 26 14:42:04 EDT 2000
How do i set enviroment variables in a Python
script that is to be run on an Apache server?
say, i want to set ORACLE_HOME = /opt/app/ora/
I wrote the following code:
import os
os.system("ORACLE_HOME=/opt/app/ora/")
os.system("export ORACLE_HOME")
....
I executed the script under my user account but
when i checked my enviroment variables with "env"
there is no ORACLE_ENV added.
how do i straighten it out?
thanks a lot.
Another question is that, when the script is up
on a web server, it's executed on behalf of
'nobody', will the enviroment variables be changed
after running the script?
--
Shengquan Liang
________________________________________
gt2558b at prism.gatech.edu
332558 GA TECH STATION
Atlanta,GA 30332-1450
More information about the Python-list
mailing list