Skip to content

Commit

Permalink
Fix module discovery
Browse files Browse the repository at this point in the history
__file__ is not set in GH workflows and needlessly complex
  • Loading branch information
lkubb committed Nov 15, 2023
1 parent 2c17724 commit ce76cae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def make_import_path(path):
return ".".join(path.relative_to(repo_path / "src").with_suffix("").parts)


for path in Path(__file__).parent.parent.joinpath("src/{{ package_namespace_path }}{{ project_name }}/").glob("*/*.py"):
for path in src_dir.glob("*/*.py"):
if path.name != "__init__.py":
kind = path.parent.name
docs_by_kind.setdefault(kind, set()).add(path)
Expand Down

0 comments on commit ce76cae

Please sign in to comment.