mirror of
https://gitlab.com/openlp/documentation.git
synced 2024-12-22 12:32:48 +00:00
Fix up the API documentation a bit, make it throw an error if it can't find the code directory, rather than blindly trying to build.
bzr-revno: 114
This commit is contained in:
commit
8ad1bce9b3
@ -19,6 +19,10 @@ import sys
|
|||||||
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
||||||
path_to_code = os.path.abspath(os.path.join(os.path.split(__file__)[0],
|
path_to_code = os.path.abspath(os.path.join(os.path.split(__file__)[0],
|
||||||
'..', '..', '..', '..', 'OpenLP', 'trunk'))
|
'..', '..', '..', '..', 'OpenLP', 'trunk'))
|
||||||
|
if not os.path.exists(path_to_code):
|
||||||
|
print 'Incorrect path to code, expecting "%s"' % path_to_code
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
sys.path.insert(0, path_to_code)
|
sys.path.insert(0, path_to_code)
|
||||||
|
|
||||||
# -- General configuration -----------------------------------------------------
|
# -- General configuration -----------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user