Set an environment variable

Mike Meyer mwm at mired.org
Fri Oct 21 15:41:39 EDT 2005


Grant Edwards <grante at visi.com> writes:
> My point: the OP wanted to know how to export an environment
> variable to a child process.  Either of the lines of code above
> will do that, so what's with all the shellular shenanigans?

Actually, the OP didn't say he wanted to export a variable to a child
process. He said he wanted to know how to do the equivalent of "export
SYMBOL=value", which got intreprted as "setting a variable in the
parent shell."

       <mike
-- 
Mike Meyer <mwm at mired.org>			http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.



More information about the Python-list mailing list