Skip to content

Commit

Permalink
plugin: adapt to pyinstaller 5.12+
Browse files Browse the repository at this point in the history
loader was renamed in pyinstaller/pyinstaller@b9111db
  • Loading branch information
SomberNight committed Apr 18, 2024
1 parent 444c4ff commit faec274
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion electrum/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def find_internal_plugins(self) -> Mapping[str, dict]:
# FIXME pyinstaller binaries are packaging each built-in plugin twice:
# once as data and once as code. To honor the "no duplicates" rule below,
# we exclude the ones packaged as *code*, here:
if loader.__class__.__qualname__ == "FrozenImporter":
if loader.__class__.__qualname__ == "PyiFrozenImporter":
continue
full_name = f'electrum.plugins.{name}'
spec = importlib.util.find_spec(full_name)
Expand Down

0 comments on commit faec274

Please sign in to comment.