Set an environment variable

Christian christian at spam.not
Fri Oct 21 03:00:20 EDT 2005


> 
> The closest thing you can do is that:
> 
> -myScript.py--------------------------------------
> print 'export MY_VARIABLE=value'
> --------------------------------------------------
> 
> -myScript.sh--------------------------------------
> python myScript.py > /tmp/chgvars.sh
> . /tmp/chgvars.sh
> --------------------------------------------------

Can I write a .py script that calls a .sh script that executes the 
export command and then calls another .py script (and how would the 
first .py script look)?

That would be much more what is my basic problem.


Thanks

Chris



More information about the Python-list mailing list