summaryrefslogtreecommitdiff
path: root/alot/__main__.py
diff options
context:
space:
mode:
Diffstat (limited to 'alot/__main__.py')
-rw-r--r--alot/__main__.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/alot/__main__.py b/alot/__main__.py
index 207c8b92..d8ab5b0d 100644
--- a/alot/__main__.py
+++ b/alot/__main__.py
@@ -11,7 +11,7 @@ import sys
import alot
from alot.settings.const import settings
from alot.settings.errors import ConfigError
-from alot.helper import get_env
+from alot.helper import get_xdg_env
from alot.db.manager import DBManager
from alot.ui import UI
from alot.commands import *
@@ -93,7 +93,8 @@ def main():
# locate alot config files
if options.config is None:
- xdg_dir = get_env('XDG_CONFIG_HOME', os.path.expanduser('~/.config'))
+ xdg_dir = get_xdg_env('XDG_CONFIG_HOME',
+ os.path.expanduser('~/.config'))
alotconfig = os.path.join(xdg_dir, 'alot', 'config')
if os.path.exists(alotconfig):
settings.alot_rc_path = alotconfig