[igt-dev] [PATCH i-g-t] docs/testplan/conf.py: add sphinx path

Mauro Carvalho Chehab mauro.chehab at linux.intel.com
Fri Sep 15 12:36:34 UTC 2023


From: Mauro Carvalho Chehab <mchehab at kernel.org>

Without that, extensions from other directories might be probed,
which is not what we want to do.

Such solution was imported from the Linux Kernel conf.py
setting.

Signed-off-by: Mauro Carvalho Chehab <mchehab at kernel.org>
---
 docs/testplan/conf.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/docs/testplan/conf.py b/docs/testplan/conf.py
index a7db5c3a230d..bf23881494b6 100644
--- a/docs/testplan/conf.py
+++ b/docs/testplan/conf.py
@@ -8,6 +8,8 @@ import sys
 # Get Sphinx version
 major, minor, patch = sphinx.version_info[:3]
 
+sys.path.insert(0, os.path.abspath('sphinx'))
+
 extensions = []
 
 def which(program):
-- 
2.41.0



More information about the igt-dev mailing list