From 1aacf81d34ecfadf892a497fc3b7f132bf9e1f9a Mon Sep 17 00:00:00 2001 From: Raoul Snyman Date: Fri, 12 Oct 2012 21:26:20 +0200 Subject: [PATCH] Fixed bug #964644: Made API documentation generation semi-idiot-proof. Fixes: https://launchpad.net/bugs/964644 --- api/source/conf.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/source/conf.py b/api/source/conf.py index b1e0dec..8432b85 100644 --- a/api/source/conf.py +++ b/api/source/conf.py @@ -19,6 +19,10 @@ import sys # 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], '..', '..', '..', '..', '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) # -- General configuration -----------------------------------------------------