Browse Source

Merge #590: Change lock filename from wallet.jmdat.lock to .wallet.jmdat.lock

92f12ab490 Change lock filename from wallet.jmdat.lock to .wallet.jmdat.lock (Kristaps Kaupe)

Pull request description:

  Resolves #587, rationale is in issue.

  Was briefly thinking about checking both old and new lock files, but I don't think it's worth doing that.

Top commit has no ACKs.

Tree-SHA512: 521516df56d996e4f420085abf37f493b974e7651c950a9c702b62f4446f5e69519b33651626fde7636a481999b45df8d8da88f266fae9e096181b06efa6e585
master
Kristaps Kaupe 6 years ago
parent
commit
66f4f03daf
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