From 8dc4099b9cab04c7ba824ea3f2b3f4a41da8b034 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Sat, 30 Jan 2016 21:35:09 +0800 Subject: small adjustments --- _offlineimap/offlineimap.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '_offlineimap') diff --git a/_offlineimap/offlineimap.py b/_offlineimap/offlineimap.py index 7d9d2fd..9a60d99 100755 --- a/_offlineimap/offlineimap.py +++ b/_offlineimap/offlineimap.py @@ -21,7 +21,7 @@ # # Aaron LI # Created: 2015-02-02 -# Updated: 2016-01-11 +# Updated: 2016-01-29 # @@ -31,9 +31,9 @@ import subprocess def mailpasswd(account): account = os.path.basename(account) - path = '{0}/.offlineimap/{1}.gpg'.format(os.environ['HOME'], account) + passfile = os.path.expanduser('~/.private/{0}.gpg'.format(account)) args = ['gpg2', '--for-your-eyes-only', '--no-tty', - '--quiet', '--batch', '--decrypt', path] + '--quiet', '--batch', '--decrypt', passfile] try: return subprocess.check_output(args).strip() except subprocess.CalledProcessError: -- cgit v1.2.2