]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
doc: Use sys.path.append for pytests 903/head
authorTom Rini <trini@konsulko.com>
Mon, 9 Mar 2026 17:27:35 +0000 (11:27 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 9 Mar 2026 17:27:35 +0000 (11:27 -0600)
Signed-off-by: Tom Rini <trini@konsulko.com>
Makefile
doc/conf.py

index 5df869213b634b30968b19688d4a79f1a7e17f90..88543808ff587851d2e53342141829dbda3e05b4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2759,8 +2759,7 @@ DOC_TARGETS := xmldocs latexdocs pdfdocs htmldocs epubdocs cleandocs \
               linkcheckdocs dochelp refcheckdocs texinfodocs infodocs
 PHONY += $(DOC_TARGETS)
 $(DOC_TARGETS): scripts_basic FORCE
-       $(Q)PYTHONPATH=$(srctree)/test/py/tests:$(srctree)/test/py \
-       $(MAKE) $(build)=doc $@
+       $(Q)$(MAKE) $(build)=doc $@
 
 PHONY += checkstack ubootrelease ubootversion
 
index 84d028feda83d49eb2cc18460d04498997b778df..bf60fe14315a32b24dddbd0a7cb91ac53fdf41a3 100644 (file)
@@ -34,6 +34,8 @@ if os.environ.get("READTHEDOCS", "") == "True":
 # 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, os.path.abspath('sphinx'))
+sys.path.append(os.path.abspath('../test/py/tests'))
+sys.path.append(os.path.abspath('../test/py'))
 from load_config import loadConfig
 
 # -- General configuration ------------------------------------------------