Skip to content

Commit

Permalink
gp_analysis: use relative path instead of filename
Browse files Browse the repository at this point in the history
  • Loading branch information
polybiusproxy committed Aug 21, 2024
1 parent aba6471 commit 9f0e0b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,13 +186,14 @@ def perform_gp_analysis():
for root, dirs, files in os.walk("asm/nonmatchings/"):
for filename in files:
filepath = os.path.join(root, filename)
relative_path = os.path.relpath(filepath, "asm/nonmatchings/")

with open(filepath, "r") as file:
for line_num, line in enumerate(file, 1):
analysis_match = gp_analysis_pattern.search(line)
if analysis_match:
variable_name = analysis_match.group(1)
references[filename][variable_name].append(line_num)
references[relative_path][variable_name].append(line_num)

max_line_length = 48
border_prefix = "---- "
Expand Down

0 comments on commit 9f0e0b6

Please sign in to comment.