From 4f2924e4a07a884b8725a5bd0c8ee0558409f473 Mon Sep 17 00:00:00 2001 From: 7sean68 Date: Wed, 4 Jan 2017 00:05:19 +0200 Subject: [PATCH] changed false Identification of windows as linux --- lib/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util.py b/lib/util.py index 44aef228..5bead672 100644 --- a/lib/util.py +++ b/lib/util.py @@ -243,7 +243,7 @@ def get_headers_path(config): return os.path.join(config.path, 'blockchain_headers') def user_dir(): - if "HOME" in os.environ: + if os.name == 'posix': return os.path.join(os.environ["HOME"], ".electrum") elif "APPDATA" in os.environ: return os.path.join(os.environ["APPDATA"], "Electrum")