summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2013-06-23 20:20:49 +0100
committerPatrick Totzke <patricktotzke@gmail.com>2013-07-07 18:04:49 +0100
commit50d597d11dd4b4d0ffb8b32e9f73ebd4b8e4ce80 (patch)
treeb0f920200a7d1b850a0cf885ec847b3bc692d7c7
parentda634fdcabb64a96efd8f9ac37afbcc0f7a92a5d (diff)
fix: make sure DBManager is initialized correctly...
and knows the path to notmuchs root dir
-rwxr-xr-xalot/init.py4
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: