From bdd376c46d540c46625517734fb58b236d3fdeaa Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Thu, 3 Oct 2024 21:58:12 -0700 Subject: [PATCH] Update report_generator.py --- etc/report_generator.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/etc/report_generator.py b/etc/report_generator.py index 9da3cf1..4cd2915 100644 --- a/etc/report_generator.py +++ b/etc/report_generator.py @@ -712,8 +712,9 @@ def main(): log_path = os.path.join(log_dir, log_file) if not os.path.exists(log_path): - # set file_path to the cwd of the script - file_path = os.path.dirname(os.path.realpath(__file__)) + # set file_path to the cwd of the default project ../log + file_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', 'logs') + file_path = os.path.abspath(file_path) log_path = os.path.join(file_path, log_file) log_data = parse_log_file(log_path)