Skip to content

Commit

Permalink
Fix bug where LockedFiles weren't checked if there was a dot in filepath
Browse files Browse the repository at this point in the history
Fixes issue #1322
  • Loading branch information
sarich committed Apr 20, 2017
1 parent 6dd85dd commit 9329b15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/lib/CIME/check_lockedfiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def check_lockedfiles(caseroot=None):
for lfile in lockedfiles:
fpart = os.path.basename(lfile)
# ignore files used for tests such as env_mach_pes.ERP1.xml by looking for extra dots in the name
if lfile.count('.') > 1:
if fpart.count('.') > 1:
continue
cfile = os.path.join(caseroot, fpart)
if os.path.isfile(cfile):
Expand Down

0 comments on commit 9329b15

Please sign in to comment.