Enviroment
Fredrik Lundh
fredrik at pythonware.com
Fri Dec 10 10:40:31 EST 1999
Robert Milkowski <milek at task.gda.pl> wrote:
> I call the program in Python as CGI.
> I need to set up LD_LIBRARY_PATH enviroment to
"/usr/lib:/lib:/mnt/1/NSIN/lib:/mnt/1/NSIN/egcs-libs:" before importing some modules.
> How can I do it in Python?
os.putennv(LD_LIBRARY_PATH,"/usr/lib:/lib:/mnt/1/NSIN/lib:/mnt/1/NSIN/egcs-libs:/mnt/1/NSIN/linux-li
bs:")
> doesn't work.
afaik, there's no error message in Python
that just says "doesn't work".
anyway, the correct syntax is:
os.environ["LD_LIBRARY_PATH"] = "/usr/lib etc
</F>
More information about the Python-list
mailing list