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: