I am using os module to get environment variable . My Variable contains ${NAME}
in it. So when I try to getting value using os.environ.get(VALUE1)
, the value gets expanded and I am not getting the desired value.
For example i did :
export VALUE1="www.xyz.new${NAME}.com"
then when i try to get this value in my code
os.environ.get('VALUE1')
I get www.xyz.new.com
when should get www.xyz.new${NAME}.com
how can i avoid this expansion and get the value as it is defined in env variable