Browse Source
run_electrum: fix DeprecationWarning re importlib.find_loader
patch-4
SomberNight
3 years ago
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
1 changed files with
2 additions and
2 deletions
-
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 = { |
|
|
|