Skip to content

Commit

Permalink
Make case-insensitive instrfilter - and allow match on "example categ…
Browse files Browse the repository at this point in the history
…ory", i.e.

--instr=union should match anything Union
  • Loading branch information
willend committed Aug 5, 2024
1 parent c83b505 commit ec9e0fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/Python/mccodelib/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ def get_instr_comp_files(mydir, recursive=True, instrfilter=None, compfilter=Non
# get instr files
if splitext(f)[1] == '.instr':
if instrfilter is not None:
if instrreg.search(splitext(f)[0]):
if instrreg.search(join(dirpath,splitext(f)[0]), re.IGNORECASE):
files_instr.append(join(dirpath, f))
else:
files_instr.append(join(dirpath, f))
Expand Down

0 comments on commit ec9e0fe

Please sign in to comment.