tby default, use user dir - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit a63b9e527e28e7d9c5e16add39fa1d2dd3d4c6f1
DIR parent 1117741e592c58d9248f8190791bf470672ae219
HTML Author: ThomasV <thomasv@gitorious>
Date: Fri, 26 Oct 2012 17:44:07 +0200
by default, use user dir
Diffstat:
M lib/verifier.py | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
---
DIR diff --git a/lib/verifier.py b/lib/verifier.py
t@@ -251,9 +251,8 @@ class WalletVerifier(threading.Thread):
return hash_encode(h)
def path(self):
- wdir = user_dir()
- if not os.path.exists( wdir ):
- wdir = os.path.dirname(self.config.path)
+ wdir = self.config.get('blockchain_headers_path', user_dir())
+ if not os.path.exists( wdir ): os.mkdir(wdir)
return os.path.join( wdir, 'blockchain_headers')
def save_chunk(self, index, chunk):