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
This commit is contained in:
parent
49d67bd505
commit
03372c77aa
1
Authors
1
Authors
|
@ -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>
|
||||
|
|
|
@ -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 ---------------------------------------------------
|
||||
|
||||
|
|
Loading…
Reference in New Issue