From 457979ce63066d98bd98b591fd0eed717c1d01e5 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Mon, 17 Mar 2025 17:51:05 +0000 Subject: [PATCH] plugin.py: fix plugin.read_file follow-up https://github.com/spesmilo/electrum/commit/246f03fe20b1cd65728f68b6937f73e3ef184b25 --- electrum/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electrum/plugin.py b/electrum/plugin.py index 7ed7e02cc..12f49fd73 100644 --- a/electrum/plugin.py +++ b/electrum/plugin.py @@ -504,7 +504,7 @@ class BasePlugin(Logger): with myzip.open(os.path.join(self.name, filename)) as myfile: return myfile.read() else: - if filename in self.parent.internal_plugin_metadata: + if self.name in self.parent.internal_plugin_metadata: path = os.path.join(os.path.dirname(__file__), 'plugins', self.name, filename) else: path = os.path.join(self.parent.get_external_plugin_dir(), self.name, filename)