Adding python to get my iocom password out of gpg file for mutt

master
Dustin Swan 12 years ago
parent 17c107bf62
commit 03f7427f28

@ -8,3 +8,11 @@ def gmail_password():
return subprocess.check_output(args).rstrip()
except subprocess.CalledProcessError:
return "".strip()
def iocom_password():
path = os.environ['HOME'] + "/.iocom_password.gpg"
args = ["gpg", "-d", path]
try:
return subprocess.check_output(args).rstrip()
except subprocess.CalledProcessError:
return "".strip()

Loading…
Cancel
Save