From 457b4817730790c4205cd954db1d90bb6520f863 Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Thu, 27 Feb 2014 13:25:46 +0100 Subject: [PATCH] properly expand tilde when creating temp dir --- src/python/samples/mutt-recoll.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/python/samples/mutt-recoll.py b/src/python/samples/mutt-recoll.py index 51e4e97f..ebbc6b4c 100755 --- a/src/python/samples/mutt-recoll.py +++ b/src/python/samples/mutt-recoll.py @@ -7,7 +7,7 @@ This is a recoll version of the original mutt-notmuch script. It will interactively ask you for a search query and then symlink the matching messages to $HOME/.cache/mutt_results. -Add this to your muttrc. +Add this to your .muttrc. macro index / "unset wait_keymutt-recoll.py~/.cache/mutt_results" \ "search mail (using recoll)" @@ -104,7 +104,7 @@ if __name__ == '__main__': if args: dest = args[0] else: - dest = '~/.cache/mutt_results' + dest = os.path.expanduser('~/.cache/mutt_results') if not os.path.exists(dest): os.makedirs(dest)