[Eug-lug] Shell scripts to export environment variables?
Rob Hudson
rob at cogit8.org
Tue Feb 26 11:16:01 PST 2008
I've got some Python scripts that rely on shell environment variables
for certain things. I wrote a simple script that did an export but it
didn't take, and I'm guessing that the shell script gets its own
environment, that when the script terminates goes away.
Is there a way to write a shell script that can export an environment
variable to the calling shell?
I know I can set environment variables in Python, but I want to keep
things modular so I can re-use the Python script and do things based
on different environment settings.
Thanks,
Rob
More information about the EUGLUG
mailing list