]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ensure pybind is in the PYTHONPATH 1527/head
authorAlfredo Deza <alfredo@deza.pe>
Mon, 24 Mar 2014 18:23:54 +0000 (14:23 -0400)
committerAlfredo Deza <alfredo@deza.pe>
Mon, 24 Mar 2014 18:52:45 +0000 (14:52 -0400)
Signed-off-by: Alfredo Deza <alfredo@deza.pe>
doc/conf.py

index ce5ac052a377f1333a6ba5ec86765e4fc8ab78a1..62feb564655fd4de344f3ab752cd3d4dc5ff3b37 100644 (file)
@@ -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)