From 6109a22101fcc20a3a988246314fea0966aec7de Mon Sep 17 00:00:00 2001 From: Raoul Snyman Date: Wed, 13 Jun 2012 19:23:12 +0200 Subject: [PATCH] Fixed the path to the code. --- api/source/conf.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/source/conf.py b/api/source/conf.py index 8c78b0f..3046109 100644 --- a/api/source/conf.py +++ b/api/source/conf.py @@ -17,7 +17,9 @@ 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.insert(0, os.path.abspath(os.path.join('..', '..', '..'))) +path_to_code = os.path.abspath(os.path.join(os.path.split(__file__)[0], + '..', '..', '..', '..', 'OpenLP', 'trunk')) +sys.path.insert(0, path_to_code) # -- General configuration -----------------------------------------------------