putenv

Grant Edwards grante at visi.com
Tue Dec 20 00:35:48 EST 2005


On 2005-12-20, dpugmire at gmail.com <dpugmire at gmail.com> wrote:

> Is there a trick to getting putenv/getenv to work?

No.

> I have csh script that calls a bunch of python programs and I'd like to
> use env variables as kind of a global variable that I can pass around
> to the pythong scripts.

You can't change the environment of the parent process.

IOW, the python programs can't change the environment of the
calling csh script (or, by extenstion, the environment of
subsequent python programs that are called by the csh script).

-- 
Grant Edwards
grante at visi.com



More information about the Python-list mailing list