Skip to content

Commit

Permalink
BUG: Fixed bad catches on find_parent_ioc in grep_more_ioc.py
Browse files Browse the repository at this point in the history
  • Loading branch information
aberges-SLAC committed May 14, 2024
1 parent 04d62b3 commit 07eb6f7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/grep_more_ioc.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,13 @@ def main():
# abbreviate path for standard IOC releases
elif 'common' in search_result:
output_str = (search_result
.rsplit('common/', maxsplit=1)[-1])
.rsplit(r'common/', maxsplit=1)[-1])
# check for children living in parent's dir
elif '$$UP(PATH)' in search_result:
output_str = d.rsplit(r'/children', maxsplit=1)[0]
# else use the full path that's found
else:
output_str = search_result
# add it to the list
output_list.append(output_str)
# Then, finally, add the column to the dataframe
Expand Down

0 comments on commit 07eb6f7

Please sign in to comment.