Skip to content

Commit

Permalink
Bug#894027: use correct module when building docs
Browse files Browse the repository at this point in the history
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
  • Loading branch information
pixelb committed Nov 23, 2011
1 parent 49d67bd commit 03372c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions Authors
Expand Up @@ -24,6 +24,7 @@ Mark McLoughlin <markmc@redhat.com>
Matt Dietz <matt.dietz@rackspace.com>
Mike Lundy <mike@pistoncloud.com>
Monty Taylor <mordred@inaugust.com>
Pádraig Brady <P@draigBrady.com>
Paul Bourke <paul-david.bourke@hp.com>
Rick Clark <rick@openstack.org>
Rick Harris <rconradharris@gmail.com>
Expand Down
8 changes: 4 additions & 4 deletions doc/source/conf.py
Expand Up @@ -33,10 +33,10 @@
# 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 ---------------------------------------------------

Expand Down

0 comments on commit 03372c7

Please sign in to comment.