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 = {