Skip to content

Commit

Permalink
fix: makedirs
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanpwang committed Jan 6, 2025
1 parent 6a9f089 commit 467555d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ci/scripts/bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 467555d

Please sign in to comment.