6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2025-01-25 06:18:23 +00:00

Merge remote-tracking branch 'origin/master' into nightly

This commit is contained in:
Overhang.IO 2024-02-09 22:11:37 +00:00
commit e2cfafda57

View File

@ -1,7 +1,7 @@
# -*- mode: python -*- # -*- mode: python -*-
import importlib import importlib
import os import os
from importlib_metadata import importlib_metadata
block_cipher = None block_cipher = None
@ -19,7 +19,7 @@ for entrypoint_version in ["tutor.plugin.v0", "tutor.plugin.v1"]:
continue continue
plugin_root = os.path.dirname(plugin.__file__) plugin_root = os.path.dirname(plugin.__file__)
plugin_root_module_name = os.path.basename(plugin_root) plugin_root_module_name = os.path.basename(plugin_root)
hidden_imports.append(entrypoint.module_name) hidden_imports.append(entrypoint.module)
for folder in ["patches", "templates"]: for folder in ["patches", "templates"]:
path = os.path.join(plugin_root, folder) path = os.path.join(plugin_root, folder)
if os.path.exists(path): if os.path.exists(path):