From 459377b1424633bc4f322a6389fcccaa7628e91d Mon Sep 17 00:00:00 2001 From: Julian Mehne Date: Fri, 19 Jan 2018 11:01:23 +0100 Subject: Move processing of setting to the right place. --- alot/settings/manager.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'alot/settings') diff --git a/alot/settings/manager.py b/alot/settings/manager.py index dffe1b32..29475526 100644 --- a/alot/settings/manager.py +++ b/alot/settings/manager.py @@ -96,6 +96,15 @@ class SettingsManager(object): newbindings = newconfig['bindings'] if isinstance(newbindings, Section): self._bindings.merge(newbindings) + + tempdir = self._config.get('template_dir') + if tempdir: + tempdir = os.path.expanduser(tempdir) + else: + xdgdir = os.environ.get('XDG_CONFIG_HOME', + os.path.expanduser('~/.config')) + tempdir = os.path.join(xdgdir, 'alot', 'templates') + # themes themestring = newconfig['theme'] themes_dir = self._config.get('themes_dir') -- cgit v1.2.3