by default, use user dir

This commit is contained in:
ThomasV 2012-10-26 17:44:07 +02:00
parent 1117741e59
commit a63b9e527e
1 changed files with 2 additions and 3 deletions

View File

@ -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):