I am trying to set environment variable using python script. I have mentioned the code below
text.py
import os
os.environ['Demo'] = "demo"
print (os.environ)
when i execute text.py file i can set the environment variable for Demo.In print statement I can able to see while executing the script,But when i check in python shell, it doesn't show that environment variable.I want to show that it as permanently. How to do that.
$python
>> import os
>> os.environ