Created
July 2, 2011 13:26
-
-
Save miebach/1060197 to your computer and use it in GitHub Desktop.
Print the environment array in python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
for param in os.environ.keys(): | |
print "%20s %s" % (param,os.environ[param]) | |
# from http://www.wellho.net/resources/ex.php4?item=y115/penv.py |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment