Skip to content

Commit

Permalink
fix: make path operations os agnostic
Browse files Browse the repository at this point in the history
  • Loading branch information
simontaurus committed Nov 21, 2024
1 parent 8cd9737 commit 953e77a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_99_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ def test_main(self):
output.write(f'| software | file name | {" | ".join(COLUMNS)} |\n')
output.write(f'| -------- | --------- | {" | ".join(["-----------" for _ in COLUMNS])} |\n')
for filename, result in logJson.items():
software = filename.split('/')[2]
individualFileName = filename.split('/')[3]
software = Path(filename).parts[1]
individualFileName = Path(filename).parts[2]
if len(individualFileName)>30:
individualFileName=individualFileName[:24]+'...eln'
resultStr = ' | '.join([':white_check_mark:' if result[col] else ':x:' for col in COLUMNS])
Expand Down

0 comments on commit 953e77a

Please sign in to comment.