Fix #6986: apidoc: misdetects module name for .so file inside module

This commit is contained in:
Takeshi KOMIYA 2020-01-03 09:44:01 +09:00
parent 577b80cb8e
commit e339c39e88
2 changed files with 2 additions and 1 deletions

View File

@ -38,6 +38,7 @@ Bugs fixed
* #6906, #6907: autodoc: failed to read the source codes encoeded in cp1251 * #6906, #6907: autodoc: failed to read the source codes encoeded in cp1251
* #6961: latex: warning for babel shown twice * #6961: latex: warning for babel shown twice
* #6559: Wrong node-ids are generated in glossary directive * #6559: Wrong node-ids are generated in glossary directive
* #6986: apidoc: misdetects module name for .so file inside module
Testing Testing
-------- --------

View File

@ -128,7 +128,7 @@ def create_package_file(root: str, master_package: str, subroot: str, py_files:
subpackages = [module_join(master_package, subroot, pkgname) subpackages = [module_join(master_package, subroot, pkgname)
for pkgname in subpackages] for pkgname in subpackages]
# build a list of sub modules # build a list of sub modules
submodules = [path.splitext(sub)[0] for sub in py_files submodules = [sub.split('.')[0] for sub in py_files
if not is_skipped_module(path.join(root, sub), opts, excludes) and if not is_skipped_module(path.join(root, sub), opts, excludes) and
sub != INITPY] sub != INITPY]
submodules = [module_join(master_package, subroot, modname) submodules = [module_join(master_package, subroot, modname)