1
0

Merge pull request #10224 from copronista/patch-1

Update plugin.py
This commit is contained in:
ThomasV
2025-09-14 10:32:49 +02:00
committed by GitHub

View File

@@ -794,7 +794,7 @@ class Plugins(DaemonThread):
metadata = self.external_plugin_metadata[name]
dirname = metadata['dirname']
with zipfile_lib.ZipFile(plugin_filename) as myzip:
with myzip.open(os.path.join(dirname, filename)) as myfile:
with myzip.open("/".join([dirname,filename])) as myfile:
return myfile.read()
elif name in self.internal_plugin_metadata:
path = os.path.join(os.path.dirname(__file__), 'plugins', name, filename)