getenvvar.py 147 Bytes
Newer Older
1 2 3 4 5 6 7
#!/usr/bin/env python3
"""Print the content of an environment variable on stdout."""
import os
import sys


print(os.environ.get(sys.argv[1], ''))