Skip to content

Commit

Permalink
Don't search for obsolete files unless the given file already is obso…
Browse files Browse the repository at this point in the history
…lete.
  • Loading branch information
Kjell Morgenstern committed Jun 20, 2024
1 parent 0105db7 commit ef39c58
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/checks/fzp_checker_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,11 @@ def search_and_check_fzp_files(self, svg_file, fzp_dir, check_types, svg_check_t
def _search_fzp_files_with_svg(self, svg_file, fzp_dir):
fzp_files = []
svg_filename = os.path.basename(svg_file)
is_obsolete = 'obsolete' in svg_file.split(os.sep)
for root, dirs, files in os.walk(fzp_dir):
if not is_obsolete and 'obsolete' in root.split(os.sep):
continue

for file in files:
if file.endswith(".fzp"):
fzp_path = os.path.join(root, file)
Expand Down

0 comments on commit ef39c58

Please sign in to comment.