File: getenvvar.py

package info (click to toggle)
pitivi 0.999-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 24,912 kB
  • sloc: python: 23,282; ansic: 2,847; sh: 249; makefile: 21; xml: 19
file content (7 lines) | stat: -rwxr-xr-x 147 bytes parent folder | download | duplicates (2)
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], ''))