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

This commit is contained in:
Dustin Swan
2013-04-14 10:53:20 -05:00
parent 17c107bf62
commit 03f7427f28

View File

@@ -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()