Skip to content

Commit

Permalink
fix path to results.json for postaudit broadcast msg
Browse files Browse the repository at this point in the history
mamullen13316 committed Jun 7, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent dbee66a commit 78aeef8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sophos_firewall_audit/postaudit_web.py
Original file line number Diff line number Diff line change
@@ -99,8 +99,10 @@ def parse_results(results):


if __name__ == "__main__":

with open("results.json", "r") as fn:

current_directory = os.path.dirname(os.path.abspath(__file__))
parent_directory = os.path.dirname(current_directory)
with open(os.path.join(parent_directory, "results.json"), "r") as fn:
results = json.loads(fn.read())

html_table = parse_results(results)

0 comments on commit 78aeef8

Please sign in to comment.