summaryrefslogtreecommitdiff
path: root/alot/init.py
diff options
context:
space:
mode:
authorJakob <jakob@pipefour.org>2012-04-02 23:17:42 -0700
committerJakob <jakob@pipefour.org>2012-04-02 23:17:42 -0700
commitf91b696b66610d406174dce921fbaf497d0d1971 (patch)
treeeead746ec7b624a429bbc9f94fbb39adb557430c /alot/init.py
parent2cb5996bc6cea048b981ea26bdfe90d8ae7dcd60 (diff)
Respect NOTMUCH_CONFIG environment variable.
Issue #422.
Diffstat (limited to 'alot/init.py')
-rwxr-xr-xalot/init.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/alot/init.py b/alot/init.py
index be54901c..7191324c 100755
--- a/alot/init.py
+++ b/alot/init.py
@@ -85,7 +85,6 @@ class Options(usage.Options):
optParameters = [
['config', 'c', None, 'config file'],
- ['notmuch-config', 'n', '~/.notmuch-config', 'notmuch config'],
['colour-mode', 'C', None, 'terminal colour mode', colourint],
['mailindex-path', 'p', None, 'path to notmuch index'],
['debug-level', 'd', 'info', 'debug log', debuglogstring],
@@ -137,7 +136,9 @@ def main():
configfiles.insert(0, expanded_path)
# locate notmuch config
- notmuchconfig = os.path.expanduser(args['notmuch-config'])
+ notmuchconfig = os.path.expanduser(os.environ.get('NOTMUCH_CONFIG',
+ '~/.notmuch-config'))
+
alotconfig = None
# read the first alot config file we find