[Python-modules-commits] [python-attrs] 03/06: Add build directory to sys.path for autodoc.

Tristan Seligmann mithrandi at moszumanska.debian.org
Mon Dec 12 03:22:14 UTC 2016


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

mithrandi pushed a commit to branch master
in repository python-attrs.

commit f19260ca33c981b8835b7b03fa1a7aca8df036fe
Author: Tristan Seligmann <mithrandi at mithrandi.net>
Date:   Mon Oct 10 04:42:22 2016 +0200

    Add build directory to sys.path for autodoc.
---
 docs/conf.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/docs/conf.py b/docs/conf.py
index 2ff5f66..640dd9e 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -47,7 +47,8 @@ def find_version(*file_paths):
 # If extensions (or modules to document with autodoc) are in another directory,
 # 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('.'))
+import sys
+sys.path.insert(0, os.path.abspath('../.pybuild/pythonX.Y_3.5/build'))
 
 # -- General configuration ------------------------------------------------
 

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



More information about the Python-modules-commits mailing list