From 467555d5af06cdc670bb7812c4d8d1cf31d15570 Mon Sep 17 00:00:00 2001 From: Jonathan Wang <31040440+jonathanpwang@users.noreply.github.com> Date: Sun, 5 Jan 2025 16:33:49 -0800 Subject: [PATCH] fix: makedirs --- ci/scripts/bench.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ci/scripts/bench.py b/ci/scripts/bench.py index 6338b927c..8a1de59e1 100644 --- a/ci/scripts/bench.py +++ b/ci/scripts/bench.py @@ -34,7 +34,8 @@ def run_cargo_command( command.extend(["--profiling"]) output_path_old = None - + # Create the output directory if it doesn't exist + os.makedirs(os.path.dirname(output_path), exist_ok=True) # Local only: in CI we will download the old metrics file from S3 if os.path.exists(output_path): output_path_old = f"{output_path}.old"