Skip to content

Commit 160c722

Browse files
committed
WIP
1 parent 9676e1e commit 160c722

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/spiffworkflow_proxy/plugin_service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ def modules_for_plugin_in_package(
8383
) -> Generator[tuple[str, types.ModuleType], None, None]:
8484
for finder, name, ispkg in pkgutil.iter_modules(plugin.__path__):
8585
if ispkg and name == package_name:
86-
imported = importlib.import_module(f"{plugin.__name__}.{name}")
87-
yield from PluginService.modules_for_plugin_in_package(imported, None)
86+
sub_pkg = importlib.import_module(f"{plugin.__name__}.{name}")
87+
yield from PluginService.modules_for_plugin_in_package(sub_pkg, None)
8888
elif not package_name:
8989
spec = finder.find_spec(name) # type: ignore
9090
if spec is not None and spec.loader is not None:

0 commit comments

Comments
 (0)