diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2013-06-23 20:20:49 +0100 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2013-07-07 18:04:49 +0100 |
commit | 50d597d11dd4b4d0ffb8b32e9f73ebd4b8e4ce80 (patch) | |
tree | b0f920200a7d1b850a0cf885ec847b3bc692d7c7 | |
parent | da634fdcabb64a96efd8f9ac37afbcc0f7a92a5d (diff) |
fix: make sure DBManager is initialized correctly...
and knows the path to notmuchs root dir
-rwxr-xr-x | alot/init.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/alot/init.py b/alot/init.py index af6cf1b1..45ae1590 100755 --- a/alot/init.py +++ b/alot/init.py @@ -163,7 +163,9 @@ def main(): settings.set('colourmode', args['colour-mode']) # get ourselves a database manager - dbman = DBManager(path=args['mailindex-path'], ro=args['read-only']) + indexpath = settings.get_notmuch_setting('database', 'path') + indexpath = args['mailindex-path'] or indexpath + dbman = DBManager(path=indexpath, ro=args['read-only']) # determine what to do try: |