From 6ec28fd92cd865fc65cd4b3cd77491051d620b72 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Mon, 24 Mar 2014 14:23:54 -0400 Subject: [PATCH] ensure pybind is in the PYTHONPATH Signed-off-by: Alfredo Deza --- doc/conf.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/doc/conf.py b/doc/conf.py index ce5ac052a377f..62feb564655fd 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -1,3 +1,6 @@ +import sys +import os + project = u'Ceph' copyright = u'2010-2014, Inktank Storage, Inc. and contributors. Licensed under Creative Commons BY-SA' version = 'dev' @@ -67,3 +70,13 @@ def _get_manpages(): man_pages = list(_get_manpages()) asphyxiate_doxygen_xml = 'doxygen' + +top_level = os.path.dirname( + os.path.dirname( + os.path.abspath(__file__) + ) +) + +pybind = os.path.join(top_level, 'src/pybind') +if pybind not in sys.path: + sys.path.insert(0, pybind) -- 2.39.5