diff options
author | Aaron LI <aaronly.me@gmail.com> | 2016-01-30 21:35:09 +0800 |
---|---|---|
committer | Aaron LI <aaronly.me@gmail.com> | 2016-01-30 21:35:09 +0800 |
commit | 8dc4099b9cab04c7ba824ea3f2b3f4a41da8b034 (patch) | |
tree | 47b71a8f9e20ff55661125797371713149eeb0aa /_offlineimap | |
parent | 1a80abd95d93db9e0a3b0646bd346ee9e6a5fcd5 (diff) | |
download | dotfiles-8dc4099b9cab04c7ba824ea3f2b3f4a41da8b034.tar.bz2 |
small adjustments
Diffstat (limited to '_offlineimap')
-rwxr-xr-x | _offlineimap/offlineimap.py | 6 |
1 files changed, 3 insertions, 3 deletions
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: |