Skip to content

Commit 26b662f

Browse files
committed
FIX: Lock file based on full path
1 parent e206f3d commit 26b662f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/utils/filemanip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ def loadpkl(infile):
700700
fmlogger.debug('Loading pkl: %s', infile)
701701
pklopen = gzip.open if infile.suffix == '.pklz' else open
702702

703-
with SoftFileLock('%s.lock' % infile.name):
703+
with SoftFileLock('%s.lock' % infile):
704704
with pklopen(str(infile), 'rb') as pkl_file:
705705
pkl_contents = pkl_file.read()
706706

0 commit comments

Comments
 (0)