From 03372c77aa2fddd61cb9b90d9aff553f90ca15d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A1draig=20Brady?= Date: Tue, 22 Nov 2011 16:16:13 +0000 Subject: [PATCH] Bug#894027: use correct module when building docs Currently the wrong directory is searched for the glance module, requiring glance to be installed in the default system path, for docs to be buildable. Also the path was appended, so the default system version which may be completely different is referenced. This ensures that only local glance files are referenced. Change-Id: Ia226c90bbd24d7804401a7c9e444387c78a0f542 --- Authors | 1 + doc/source/conf.py | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Authors b/Authors index 299eeb3413..7215b4d82e 100644 --- a/Authors +++ b/Authors @@ -24,6 +24,7 @@ Mark McLoughlin Matt Dietz Mike Lundy Monty Taylor +Pádraig Brady Paul Bourke Rick Clark Rick Harris diff --git a/doc/source/conf.py b/doc/source/conf.py index f058b52e7b..3ecbb03f7b 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -33,10 +33,10 @@ import sys # 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.append([os.path.abspath('../glance'), - os.path.abspath('..'), - os.path.abspath('../bin') - ]) +sys.path = [os.path.abspath('../../glance'), + os.path.abspath('../..'), + os.path.abspath('../../bin') + ] + sys.path # -- General configuration ---------------------------------------------------