Skip to content

Commit d12ee94

Browse files
authored
Set sphinx module path (#516)
Sphinx module path should be set to "../src" not ".." for autodoc to work locally when typing "make html" from the "docs" folder. If not, sphinx-build might use a source file from pytest-qt installed in site-packages outside the git repo.
1 parent 0518ca0 commit d12ee94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# If extensions (or modules to document with autodoc) are in another directory,
1717
# add these directories to sys.path here. If the directory is relative to the
1818
# documentation root, use os.path.abspath to make it absolute, like shown here.
19-
sys.path.insert(0, os.path.abspath(".."))
19+
sys.path.insert(0, os.path.abspath("../src"))
2020

2121
# -- General configuration -----------------------------------------------------
2222

0 commit comments

Comments
 (0)