From 92f12ab490f1dc96f8673f2d3524ff2b10d96278 Mon Sep 17 00:00:00 2001 From: Kristaps Kaupe Date: Mon, 1 Jun 2020 17:47:50 +0300 Subject: [PATCH] Change lock filename from wallet.jmdat.lock to .wallet.jmdat.lock --- jmclient/jmclient/storage.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jmclient/jmclient/storage.py b/jmclient/jmclient/storage.py index 5ff0ce7..34d969d 100644 --- a/jmclient/jmclient/storage.py +++ b/jmclient/jmclient/storage.py @@ -281,7 +281,8 @@ class Storage(object): def _create_lock(self): if self.read_only: return - lock_filename = '{}.lock'.format(self.path) + (path_head, path_tail) = os.path.split(self.path) + lock_filename = os.path.join(path_head, '.' + path_tail + '.lock') self._lock_file = lock_filename if os.path.exists(self._lock_file): with open(self._lock_file, 'r') as f: