6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-12-13 06:37:46 +00:00

fix: v1 plugins in binary bundle

This commit is contained in:
Régis Behmo 2022-04-24 14:59:42 +02:00
parent e15c107570
commit 51e93941e0

View File

@ -9,7 +9,8 @@ datas = [("./tutor/templates", "./tutor/templates")]
hidden_imports = [] hidden_imports = []
# Auto-discover plugins and include patches & templates folders # Auto-discover plugins and include patches & templates folders
for entrypoint in pkg_resources.iter_entry_points("tutor.plugin.v0"): for entrypoint_version in ["tutor.plugin.v0", "tutor.plugin.v1"]:
for entrypoint in pkg_resources.iter_entry_points(entrypoint_version):
plugin_name = entrypoint.name plugin_name = entrypoint.name
try: try:
plugin = entrypoint.load() plugin = entrypoint.load()