Adding python to get my iocom password out of gpg file for mutt
This commit is contained in:
parent
17c107bf62
commit
03f7427f28
1 changed files with 8 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue