update pyinstaller scripts for python3 and pyinstaller3 (credit: bauerj)
This commit is contained in:
5
electrum
5
electrum
@@ -90,7 +90,7 @@ if not is_android:
|
||||
check_imports()
|
||||
|
||||
# load local module as electrum
|
||||
if is_bundle or is_local or is_android:
|
||||
if is_local or is_android:
|
||||
import imp
|
||||
imp.load_module('electrum', *imp.find_module('lib'))
|
||||
imp.load_module('electrum_gui', *imp.find_module('gui'))
|
||||
@@ -106,6 +106,7 @@ from electrum.commands import get_parser, known_commands, Commands, config_varia
|
||||
from electrum import daemon
|
||||
from electrum import keystore
|
||||
from electrum.mnemonic import Mnemonic
|
||||
import electrum_plugins
|
||||
|
||||
# get password routine
|
||||
def prompt_password(prompt, confirm=True):
|
||||
@@ -292,7 +293,7 @@ def run_offline_command(config, config_options):
|
||||
|
||||
def init_plugins(config, gui_name):
|
||||
from electrum.plugins import Plugins
|
||||
return Plugins(config, is_bundle or is_local or is_android, gui_name)
|
||||
return Plugins(config, is_local or is_android, gui_name)
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
|
||||
Reference in New Issue
Block a user