I am using os.environ['my_key']
to read in a key from my .bashrc
. For example, if my_key="123$abc"
were in .bashrc
then os.environ['my_key']
would return 123bc
.
Is there a trick to read in the full key?
I am using os.environ['my_key']
to read in a key from my .bashrc
. For example, if my_key="123$abc"
were in .bashrc
then os.environ['my_key']
would return 123bc
.
Is there a trick to read in the full key?
Try to escape $
.
my_key="123\$abc"