Browse Source

run_electrum: allow running from git clone to override DeprecationWarning warnings

master
Sander van Grieken 1 year ago
parent
commit
974ed6828e
No known key found for this signature in database
GPG Key ID: 9BCF8209EA402EBA
  1. 3
      run_electrum

3
run_electrum

@ -51,7 +51,8 @@ is_local = (not is_binary_distributable
is_git_clone = is_local and os.path.exists(os.path.join(script_dir, ".git")) is_git_clone = is_local and os.path.exists(os.path.join(script_dir, ".git"))
if is_git_clone: if is_git_clone:
# developers should probably see all deprecation warnings. # developers should probably see all deprecation warnings unless explicitly overruled
if not any(['DeprecationWarning' in x for x in sys.warnoptions]):
warnings.simplefilter('default', DeprecationWarning) warnings.simplefilter('default', DeprecationWarning)
if is_local or is_android: if is_local or is_android:

Loading…
Cancel
Save