URI: 
       tAdded ELECTRUMDIR env variable (#5543) - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit c1212307063723e3fa0d13c6d05798e9a5d1a111
   DIR parent 2927478192e40fd6966af17654471ebfb9051bba
  HTML Author: Jakub Ɓukasiewicz <jakublukasiewicz@o2.pl>
       Date:   Tue, 25 Feb 2020 16:28:53 +0100
       
       Added ELECTRUMDIR env variable (#5543)
       
       Simple way for allowing users to change localization of Electrum directory
       from ~/.electrum to somewhere else
       Diffstat:
         M electrum/util.py                    |       4 +++-
       
       1 file changed, 3 insertions(+), 1 deletion(-)
       ---
   DIR diff --git a/electrum/util.py b/electrum/util.py
       t@@ -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")