def setUpClass(cls):
        super().setUpClass()
        from electrum.plugin import Plugins
        from electrum.simple_config import SimpleConfig

        cls.__electrum_path = tempfile.mkdtemp()
        config = SimpleConfig({'electrum_path': cls.__electrum_path})

        gui_name = 'cmdline'
        # TODO it's probably wasteful to load all plugins... only need Trezor
        Plugins(config, gui_name)
Beispiel #2
0
def init_plugins(config, gui_name):
    from electrum.plugin import Plugins
    return Plugins(config, gui_name)