summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2017-08-27 16:08:25 +0100
committerPatrick Totzke <patricktotzke@gmail.com>2017-08-27 16:08:25 +0100
commit006702beb37ca4bfde494d6e526299827d8c85b5 (patch)
tree90c38d42384273b4170cf122ab4bc8395456928e /docs
parent1e71185be3de7ee06e241db9d4eb535e4851e377 (diff)
fix example hook
This fixes the example "goodbye"-hook in order to make it work again with v0.6 and newer branches: the initializes SettingsManager object is now accessible as 'alot.settings.const.settings'.
Diffstat (limited to 'docs')
-rw-r--r--docs/source/configuration/hooks.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/source/configuration/hooks.rst b/docs/source/configuration/hooks.rst
index 352701c3..0b2b6a23 100644
--- a/docs/source/configuration/hooks.rst
+++ b/docs/source/configuration/hooks.rst
@@ -28,7 +28,7 @@ Consider this pre-hook for the exit command, that logs a personalized goodbye
message::
import logging
- from alot.settings import settings
+ from alot.settings.const import settings
def pre_global_exit(**kwargs):
accounts = settings.get_accounts()
if accounts: