summaryrefslogtreecommitdiff
path: root/alot/__main__.py
diff options
context:
space:
mode:
authorJulian Mehne <julian.mehne@posteo.de>2018-01-23 13:18:06 +0100
committerJulian Mehne <julian.mehne@posteo.de>2018-01-23 13:18:06 +0100
commitd2888c080f00d5d53ff0f30626bc3059cdc95ef8 (patch)
treec4eed139257b3ecb57ef979d5fd89d6bc3e4fb0b /alot/__main__.py
parente8586c18e73920ec9c5ad3344a0fbaa53bca3954 (diff)
Rename get_env to get_xdg_env and clarify docstring.
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