Skip to content

Commit

Permalink
fix paths
Browse files Browse the repository at this point in the history
  • Loading branch information
markcmiller86 committed Jul 1, 2024
1 parent f024ad6 commit 7b0e42e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions utils/LinkChecker/cklcresults.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def AppendLineToPreviousKey(cr, key, line):
#
trouble_links = []
if ghEvent != "pull_request":
with open('../../utils/LinkChecker/trouble_links.txt','r') as file:
with open('utils/LinkChecker/trouble_links.txt','r') as file:
for line in file:
trouble_links.append(ast.literal_eval(line.strip()))
trouble_links_original_size = len(trouble_links)
Expand All @@ -77,7 +77,7 @@ def AppendLineToPreviousKey(cr, key, line):
#
bad_links = []
if ghEvent != "pull_request":
with open('../../utils/LinkChecker/bad_links.txt','r') as file:
with open('utils/LinkChecker/bad_links.txt','r') as file:
for line in file:
bad_links.append(ast.literal_eval(line.strip()))
bad_links_original_size = len(bad_links)
Expand Down Expand Up @@ -132,14 +132,14 @@ def AppendLineToPreviousKey(cr, key, line):
# Update trouble_links file if modified
#
if ghEvent != "pull_request" and len(trouble_links) != trouble_links_original_size:
with open('../../utils/LinkChecker/trouble_links.txt','w') as file:
with open('utils/LinkChecker/trouble_links.txt','w') as file:
for rec in trouble_links:
file.write(str(rec)+'\n')

#
# Update bad_links file if modified
#
if len(bad_links) > bad_links_original_size:
with open('../../utils/LinkChecker/bad_links.txt','w') as file:
with open('utils/LinkChecker/bad_links.txt','w') as file:
for rec in bad_links:
file.write(str(rec)+'\n')

0 comments on commit 7b0e42e

Please sign in to comment.