Allow .whl files

This commit is contained in:
Timmy Welch 2024-09-17 14:27:01 -07:00
parent 6a97ace933
commit 6ea9230382

View File

@ -136,7 +136,7 @@ def find_plugins(plugin_folder: pathlib.Path) -> Plugins:
"""Discovers all plugins (but does not load them)."""
ret: list[LoadedPlugin] = []
zips = [x for x in plugin_folder.glob("*.zip") if x.is_file()]
zips = [x for x in plugin_folder.iterdir() if x.is_file() and x.suffix in (".zip", ".whl")]
for plugin_path in os_sorted(zips):
logger.debug("looking for plugins in %s", plugin_path)