[python-dtcwt] 291/497: docs/conf.py: add tests directory to include path

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Tue Jul 21 18:06:15 UTC 2015


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch debian/sid
in repository python-dtcwt.

commit d298b99d123c0031a2e3f1ad7a93e8a3dc62fe4d
Author: Rich Wareham <rjw57 at cam.ac.uk>
Date:   Fri Jan 31 12:48:22 2014 +0000

    docs/conf.py: add tests directory to include path
---
 docs/conf.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/docs/conf.py b/docs/conf.py
index a7ce2b3..5a2f64e 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -29,6 +29,9 @@ release = setup_cfg.get('metadata', 'version')
 # documentation root, use os.path.abspath to make it absolute, like shown here.
 #sys.path.insert(0, os.path.abspath('.'))
 
+# Add the 'tests' directory to the path so that we may import from the util module..
+sys.path.insert(0, os.path.abspath(os.path.join('..', 'tests')))
+
 # -- General configuration -----------------------------------------------------
 
 # If your documentation needs a minimal Sphinx version, state it here.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/python-dtcwt.git



More information about the debian-science-commits mailing list