Skip to content

Commit

Permalink
Create output directory if it doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
ai-1st committed Dec 9, 2024
1 parent b901321 commit 10e04a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import argparse
from argparse import RawTextHelpFormatter
from uuid import uuid4
import os

from dotenv import load_dotenv

Expand Down Expand Up @@ -92,6 +93,7 @@ async def main(args):

# Write the report to a file
artifact_filepath = f"outputs/{uuid4()}.md"
os.makedirs("outputs", exist_ok=True)
with open(artifact_filepath, "w") as f:
f.write(report)

Expand Down

0 comments on commit 10e04a2

Please sign in to comment.