summaryrefslogtreecommitdiff
path: root/docs/source/generate_configs.py
diff options
context:
space:
mode:
authorLucas Hoffmann <l-m-h@web.de>2016-12-11 02:00:21 +0100
committerLucas Hoffmann <l-m-h@web.de>2016-12-11 02:14:44 +0100
commit4e5b03fde36f04928d5e2af417347b75f4a52e7d (patch)
tree99ecf6f3d43895b41eab48bdc38a1cd46bc410b2 /docs/source/generate_configs.py
parent6720acb0e7957d1f7f0e43ac4584df074517f366 (diff)
Fix path in docs generating scripts
The path to the present development version of alot should be prepended to sys.path in order to shadow other versions of alot installed on the system. Also it should be a directory from which the alot module is loadable. That is the root of the git repository and not one level above this. This was overlooked in #912.
Diffstat (limited to 'docs/source/generate_configs.py')
-rwxr-xr-xdocs/source/generate_configs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/source/generate_configs.py b/docs/source/generate_configs.py
index 4320e7f3..b8ef2ffe 100755
--- a/docs/source/generate_configs.py
+++ b/docs/source/generate_configs.py
@@ -1,7 +1,7 @@
import sys
import os
HERE = os.path.dirname(__file__)
-sys.path.append(os.path.join(HERE, '..', '..', '..'))
+sys.path.insert(0, os.path.join(HERE, '..', '..'))
from alot.commands import COMMANDS
from configobj import ConfigObj
from validate import Validator