From: Alfredo Deza Date: Mon, 24 Mar 2014 18:23:54 +0000 (-0400) Subject: ensure pybind is in the PYTHONPATH X-Git-Tag: v0.79~93^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1527%2Fhead;p=ceph.git ensure pybind is in the PYTHONPATH Signed-off-by: Alfredo Deza --- 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)