mirror of
https://github.com/ChristianLight/tutor.git
synced 2024-06-01 22:00:48 +00:00
ci: fix bundle building
This commit is contained in:
parent
439b7d08f0
commit
b69a8c7adc
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user