Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Python: Accessing Environment Variables

Python: Accessing Environment Variables
{filelink=16778}

import os
print os.environ['PATH']
print os.environ['USERNAME'] #current session
print os.environ['Temp'] # Temporary directory
print os.environ['PATH']
# Get System variables
print os.environ.keys()

Users who found this page were searching for:

  • python environment variables
  • python delete environment variable

No comments yet.

Leave a Comment