Skip to content

Commit

Permalink
fi
Browse files Browse the repository at this point in the history
  • Loading branch information
Loickemajou authored Aug 19, 2024
1 parent d50b78c commit 998d076
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pysteps/nowcasts/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,15 @@ def discover_nowcasts():
import pkg_resources

importlib.reload(pkg_resources)
entry_points = list(
pkg_resources.iter_entry_points(group="pysteps.plugins.nowcasts", name=None)
)
if not entry_points:
print("No entry points found in 'pysteps.plugins.nowcasts'.")
return

for entry_point in pkg_resources.iter_entry_points(
group="pysteps.plugin.nowcasts", name=None
group="pysteps.plugins.nowcasts", name=None
):
_module = entry_point.load()
nowcast_module_name = entry_point.name
Expand Down

0 comments on commit 998d076

Please sign in to comment.