From 970e5c4228a03e0eb557bb94ce7017defbd1759a Mon Sep 17 00:00:00 2001 From: Joseph Ferano Date: Thu, 31 Jul 2025 21:26:31 +0700 Subject: [PATCH] Make output dir if it doesn't exist --- orchestrator.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/orchestrator.py b/orchestrator.py index b93a0f3..e4b3c48 100644 --- a/orchestrator.py +++ b/orchestrator.py @@ -40,8 +40,8 @@ env_vars = { output_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'output') -# os.makedirs(output_dir, exist_ok=True) -# os.chmod(output_dir, 0o777) +os.makedirs(output_dir, exist_ok=True) +os.chmod(output_dir, 0o777) if args.browser_args: env_vars['BROWSER_ARGS'] = ','.join(args.browser_args) @@ -51,7 +51,6 @@ if args.proxy_url: try: container_start_time = time.time() - print("Container start time:", container_start_time) container = docker_client.containers.run( args.image_name, @@ -143,7 +142,6 @@ try: subprocess.run(['open', 'output/report.html']) print("Report opened in browser") except (subprocess.CalledProcessError, FileNotFoundError): - print("what happened") pass