Fix logging.handlers import and improve plugin modules

This commit is contained in:
marios8543
2023-10-31 17:04:48 +02:00
parent d00506d141
commit 44e6f03b06
3 changed files with 6 additions and 4 deletions
+3 -1
View File
@@ -80,7 +80,9 @@ class PluginWrapper:
syspath.append(path.join(environ["DECKY_PLUGIN_DIR"], "py_modules"))
#TODO: FIX IN A LESS CURSED WAY
sysmodules.update(sysmodules["src"].__dict__)
keys = [key.replace("src.", "") for key in sysmodules if key.startswith("src.")]
for key in keys:
sysmodules[key] = sysmodules["src"].__dict__[key]
spec = spec_from_file_location("_", self.file)
assert spec is not None