export FOO1=bar1
python -c "import os; os.environ['FOO2'] = 'bar2'"
echo $FOO1 $FOO2 # prints "bar1"
How do I make the environment variable FOO2='bar2'
accessible to the calling bash script?
export FOO1=bar1
python -c "import os; os.environ['FOO2'] = 'bar2'"
echo $FOO1 $FOO2 # prints "bar1"
How do I make the environment variable FOO2='bar2'
accessible to the calling bash script?