HI All!
I am creating a Python function that should set environment variable. My simple code is
#!/usr/bin/python
import os
os.environ="12345"
print "After setting Environment Variable is ",os.environ
When i execute this code file in command prompt it is giving me this result
After setting Environment Variable is 12345
But when i run this command in command prompt SET FK_DBO_PASS
The result is
Environment variable FK_DBO_PASS not defined
My code is not setting environment variable .Can some one help me how i can fix this code? and how i can set temporary environment variable through python code just for my existing process?
Waiting for someone help. Thanks
Best Regards
Sarfraz