Fixing offline imap password stuff
parent
f3841a66bb
commit
e4b21e989d
@ -1,7 +1,9 @@
|
|||||||
|
import subprocess
|
||||||
|
|
||||||
def gmail_password():
|
def gmail_password():
|
||||||
path = "~/.gmail_password.pgp"
|
path = "/Users/dustinswan/.gmail_password.gpg"
|
||||||
args = ["gpg", "--use-agent", "--quiet", "--batch", "-d", path]
|
args = ["gpg", "-d", path]
|
||||||
try:
|
try:
|
||||||
return subprocess.check_output(args)
|
return subprocess.check_output(args).rstrip()
|
||||||
except subprocess.CalledProcessError:
|
except subprocess.CalledProcessError:
|
||||||
return "".strip()
|
return "".strip()
|
||||||
|
Loading…
Reference in New Issue