mirror of
https://gitlab.com/openlp/documentation.git
synced 2024-12-22 04:22:49 +00:00
Fixed bug #964644: Made API documentation generation semi-idiot-proof.
Fixes: https://launchpad.net/bugs/964644
This commit is contained in:
parent
8e510087e9
commit
1aacf81d34
@ -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