a05da455 ("doc: add new python bindings to main documentation tree.", 2020-07-11) added the path "bindings/python-cffi/notmuch2" to the search path for autodoc. But the notmuch2 module cannot be imported from there - the dir "is" the module, and it resides in "bindings/python-cffi" and in "bindings/python-cffi/build/stage", with only the latter location having the compiled capi part. This goes unnoticed as long as you have notmuch2 in your standard search path, but it means autodocs finds the wrong module, not the one one we are building the doc against. Fix the path so that the build tree module comes first. Signed-off-by: Michael J Gruber <git@grubix.eu> --- doc/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/conf.py b/doc/conf.py index 1fbd102b..c7fd8f5a 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -25,7 +25,7 @@ for pathdir in ['.', '..']: version=infile.read().replace('\n','') # for autodoc -sys.path.insert(0, os.path.join(location, '..', 'bindings', 'python-cffi', 'notmuch2')) +sys.path.insert(0, os.path.join(location, '..', 'bindings', 'python-cffi', 'build', 'stage')) # read generated config for pathdir in ['.', '..']: -- 2.33.0.1146.g7ac282475c _______________________________________________ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-leave@notmuchmail.org