File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3636PTS_WORKSPACE_FILE_EXT = ".pqw6"
3737
3838# Global paths for wid report
39- BASE_DIR = Path (__file__ ).parent .parent .resolve ()
39+ BASE_DIR = Path (__file__ ).parent .parent
40+ try :
41+ BASE_DIR = BASE_DIR .resolve ()
42+ except OSError :
43+ BASE_DIR = BASE_DIR .absolute ()
4044LOG_DIR = BASE_DIR / "logs"
4145
4246# Regex patterns for log field parsing in wid report
@@ -583,7 +587,11 @@ def extract_wid_testcases_to_csv(log_dir: Path = None):
583587 testcases_combined = " " .join (testcases )
584588 writer .writerow ([wid , testcases_combined ])
585589
586- print (f"WID usage report saved to: { OUTPUT_CSV_PATH .resolve ()} " )
590+ try :
591+ _wid_path = OUTPUT_CSV_PATH .resolve ()
592+ except OSError :
593+ _wid_path = OUTPUT_CSV_PATH .absolute ()
594+ print (f"WID usage report saved to: { _wid_path } " )
587595
588596
589597Sep = re .compile (r'[,\s;|]+' )
You can’t perform that action at this time.
0 commit comments