Update sys.path in docs/conf.py for Sphinx to find subdir packages.

This commit is contained in:
Jakub Warmuz 2015-07-10 17:22:52 +00:00
parent 2ae6ac2bfd
commit ff8925d92f
No known key found for this signature in database
GPG key ID: 2A7BAD3A489B52EA

View file

@ -36,6 +36,8 @@ with codecs.open(init_fn, encoding='utf8') as fd:
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
sys.path.insert(0, os.path.abspath(os.path.join(here, '..')))
for pkg in 'acme', 'letsencrypt_apache', 'letsencrypt_nginx':
sys.path.insert(0, os.path.abspath(os.path.join(here, '..', pkg)))
# -- General configuration ------------------------------------------------