From 75e7f5e2f851bc9dc94e48e720e320f31dd9905f Mon Sep 17 00:00:00 2001 From: SomberNight Date: Fri, 8 Jul 2022 13:32:41 +0200 Subject: [PATCH] run_electrum: fix DeprecationWarning re importlib.find_loader --- run_electrum | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run_electrum b/run_electrum index 4b3565fda..163eb6659 100755 --- a/run_electrum +++ b/run_electrum @@ -322,8 +322,8 @@ def main(): # config is an object passed to the various constructors (wallet, interface, gui) if is_android: - import importlib - android_gui = 'kivy' if importlib.find_loader('kivy') else 'qml' + import importlib.util + android_gui = 'kivy' if importlib.util.find_spec('kivy') else 'qml' from jnius import autoclass build_config = autoclass("org.electrum.electrum.BuildConfig") config_options = {