Tech I Learnt Today
Thursday, July 2, 2015
Access Environment Vars in Python
To access environment variables in Python, import os module and run the following command
import os
print os.environ['ENV_VAR_YOU_WANT']
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment