Skip to content

Commit 457979c

Browse files
committed
plugin.py: fix plugin.read_file
follow-up 246f03f
1 parent e7907d3 commit 457979c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

electrum/plugin.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ def read_file(self, filename: str) -> bytes:
504504
with myzip.open(os.path.join(self.name, filename)) as myfile:
505505
return myfile.read()
506506
else:
507-
if filename in self.parent.internal_plugin_metadata:
507+
if self.name in self.parent.internal_plugin_metadata:
508508
path = os.path.join(os.path.dirname(__file__), 'plugins', self.name, filename)
509509
else:
510510
path = os.path.join(self.parent.get_external_plugin_dir(), self.name, filename)

0 commit comments

Comments
 (0)