Skip to content

Commit

Permalink
Merge pull request #1391 from ESMCI/sarich/fix_bug_in_check_lockedfiles
Browse files Browse the repository at this point in the history
Fix bug where LockedFiles weren't checked if there was a dot in filepath
  • Loading branch information
jedwards4b authored Apr 20, 2017
2 parents 5cda778 + 9329b15 commit 1db632a
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 1db632a

Please sign in to comment.