diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
index 1b6e7987d55d632c0e84646237a8937aff74fb18..b921f03c3b964c81d911be749877e18a44a2e0e3 100644
--- a/doc/CMakeLists.txt
+++ b/doc/CMakeLists.txt
@@ -28,7 +28,7 @@ set(_SPHINX_CONF_SUBST_DICT PROMOD3_VERSION_MAJOR="${PROMOD3_VERSION_MAJOR}"
                             PYTHON_DOC_URL="${PYTHON_DOC_URL}"
                             LIB_STAGE_PATH="${LIB_STAGE_PATH}"
                             PYTHON_VERSION="${PYTHON_VERSION}"
-                            OST_ROOT="${OST_ROOT}"
+                            OST_PYMOD_PATH="${OST_PYMOD_PATH}"
                             OST_DOC_URL="${OST_DOC_URL}"
                             LIB_DIR="${LIB_DIR}")
 
diff --git a/doc/conf.py.in b/doc/conf.py.in
index 72f2d4b89c3861c15c0c354e884282dc774c08fa..2c10a2e601dc70468b3783a509115bf5a3787d7c 100644
--- a/doc/conf.py.in
+++ b/doc/conf.py.in
@@ -20,7 +20,7 @@ import sys, os
 # 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, '@LIB_STAGE_PATH@/python@PYTHON_VERSION@/site-packages')
-sys.path.insert(1, '@OST_ROOT@/@LIB_DIR@/python@PYTHON_VERSION@/site-packages')
+sys.path.insert(1, '@OST_PYMOD_PATH@')
 
 # -- General configuration -----------------------------------------------------
 
@@ -282,7 +282,7 @@ rst_epilog = """
 doctest_global_setup = """
 import sys
 sys.path.insert(0, '@LIB_STAGE_PATH@/python@PYTHON_VERSION@/site-packages')
-sys.path.insert(1, '@OST_ROOT@/@LIB_DIR@/python@PYTHON_VERSION@/site-packages')
+sys.path.insert(1, '@OST_PYMOD_PATH@')
 
 import ost