Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
jbirddog committed Oct 9, 2024
1 parent 9676e1e commit 160c722
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/spiffworkflow_proxy/plugin_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ def modules_for_plugin_in_package(
) -> Generator[tuple[str, types.ModuleType], None, None]:
for finder, name, ispkg in pkgutil.iter_modules(plugin.__path__):
if ispkg and name == package_name:
imported = importlib.import_module(f"{plugin.__name__}.{name}")
yield from PluginService.modules_for_plugin_in_package(imported, None)
sub_pkg = importlib.import_module(f"{plugin.__name__}.{name}")
yield from PluginService.modules_for_plugin_in_package(sub_pkg, None)
elif not package_name:
spec = finder.find_spec(name) # type: ignore
if spec is not None and spec.loader is not None:
Expand Down

0 comments on commit 160c722

Please sign in to comment.