plugin.py: fix plugin.read_file
follow-up https://github.com/spesmilo/electrum/commit/246f03fe20b1cd65728f68b6937f73e3ef184b25
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user