Browse Source

Change lock filename from wallet.jmdat.lock to .wallet.jmdat.lock

master
Kristaps Kaupe 6 years ago
parent
commit
92f12ab490
No known key found for this signature in database
GPG Key ID: D47B1B4232B55437
  1. 3
      jmclient/jmclient/storage.py

3
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:

Loading…
Cancel
Save