URI: 
       tfix android detection - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 4db5052cc6d4be832c820b4172993f34b9dbad8d
   DIR parent ec42483b6b40898b7bc4f3d193f17be734c55533
  HTML Author: ThomasV <thomasv@electrum.org>
       Date:   Wed,  4 Jan 2017 22:37:59 +0100
       
       fix android detection
       
       Diffstat:
         M lib/util.py                         |       6 +++---
       
       1 file changed, 3 insertions(+), 3 deletions(-)
       ---
   DIR diff --git a/lib/util.py b/lib/util.py
       t@@ -243,14 +243,14 @@ def get_headers_path(config):
                return os.path.join(config.path, 'blockchain_headers')
        
        def user_dir():
       -    if os.name == 'posix':
       +    if 'ANDROID_DATA' in os.environ:
       +        return android_check_data_dir()
       +    elif os.name == 'posix':
                return os.path.join(os.environ["HOME"], ".electrum")
            elif "APPDATA" in os.environ:
                return os.path.join(os.environ["APPDATA"], "Electrum")
            elif "LOCALAPPDATA" in os.environ:
                return os.path.join(os.environ["LOCALAPPDATA"], "Electrum")
       -    elif 'ANDROID_DATA' in os.environ:
       -        return android_check_data_dir()
            else:
                #raise Exception("No home directory found in environment variables.")
                return