I wanted to set some environment variables in my bash / linux terminal using python script.
I tried:
import os;
os.environ['HOME_ROOT'] = '/home/aloha'
os.putenv("HOME_ROOT", "/home/aloha")
but it wasn't setting the variables.
If I do as shown below from the shell script, it sets the required variables:
setenv HOME_ROOT /home/aloha
But I wanted to do the same using Python script. Am I making any mistake, or is it not possible to set env variables in bash/linux terminals from Python?
Please share your comments!