Skip to content

Commit 3774e38

Browse files
committed
[scoreboard] Create output dir if it is missing
1 parent 71df69c commit 3774e38

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scoreboard/main.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,9 @@ def main():
228228
)
229229
args = parser.parse_args()
230230

231-
output_file = Path(args.output) / "index.html"
231+
output_path = Path(args.output)
232+
output_path.mkdir(parents=True, exist_ok=True)
233+
output_file = output_path / "index.html"
232234
with open(output_file, "w") as file:
233235
file.write(html_content)
234236

0 commit comments

Comments
 (0)