This is an old revision of the document!
OS ENV Variables
General Information
Using OS environmental variables.
Checklist
- Import the “os” module
The Code
#!/usr/bin/python import os user_home=os.environ.get('HOME') print "Home is: " + user_home