by default, use user dir
This commit is contained in:
parent
1117741e59
commit
a63b9e527e
|
@ -251,9 +251,8 @@ class WalletVerifier(threading.Thread):
|
||||||
return hash_encode(h)
|
return hash_encode(h)
|
||||||
|
|
||||||
def path(self):
|
def path(self):
|
||||||
wdir = user_dir()
|
wdir = self.config.get('blockchain_headers_path', user_dir())
|
||||||
if not os.path.exists( wdir ):
|
if not os.path.exists( wdir ): os.mkdir(wdir)
|
||||||
wdir = os.path.dirname(self.config.path)
|
|
||||||
return os.path.join( wdir, 'blockchain_headers')
|
return os.path.join( wdir, 'blockchain_headers')
|
||||||
|
|
||||||
def save_chunk(self, index, chunk):
|
def save_chunk(self, index, chunk):
|
||||||
|
|
Loading…
Reference in New Issue