Skip to content

Instantly share code, notes, and snippets.

@iangow
Created May 14, 2016 13:44
Show Gist options
  • Save iangow/ceb8d6fae67f19d6030c4cef55ff8222 to your computer and use it in GitHub Desktop.
Save iangow/ceb8d6fae67f19d6030c4cef55ff8222 to your computer and use it in GitHub Desktop.
Code snippet to test environment variables in Python.
import os
print(os.environ['PGHOST'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment