Browse Source

Added ELECTRUMDIR env variable (#5543)

Simple way for allowing users to change localization of Electrum directory
from ~/.electrum to somewhere else
hard-fail-on-bad-server-string
Jakub Łukasiewicz 5 years ago
committed by GitHub
parent
commit
c121230706
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      electrum/util.py

4
electrum/util.py

@ -566,7 +566,9 @@ def xor_bytes(a: bytes, b: bytes) -> bytes:
def user_dir():
if 'ANDROID_DATA' in os.environ:
if "ELECTRUMDIR" in os.environ:
return os.environ["ELECTRUMDIR"]
elif 'ANDROID_DATA' in os.environ:
return android_data_dir()
elif os.name == 'posix':
return os.path.join(os.environ["HOME"], ".electrum")

Loading…
Cancel
Save