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