Make output dir if it doesn't exist
This commit is contained in:
parent
3a033c01f2
commit
970e5c4228
@ -40,8 +40,8 @@ env_vars = {
|
|||||||
|
|
||||||
output_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'output')
|
output_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'output')
|
||||||
|
|
||||||
# os.makedirs(output_dir, exist_ok=True)
|
os.makedirs(output_dir, exist_ok=True)
|
||||||
# os.chmod(output_dir, 0o777)
|
os.chmod(output_dir, 0o777)
|
||||||
|
|
||||||
if args.browser_args:
|
if args.browser_args:
|
||||||
env_vars['BROWSER_ARGS'] = ','.join(args.browser_args)
|
env_vars['BROWSER_ARGS'] = ','.join(args.browser_args)
|
||||||
@ -51,7 +51,6 @@ if args.proxy_url:
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
container_start_time = time.time()
|
container_start_time = time.time()
|
||||||
print("Container start time:", container_start_time)
|
|
||||||
|
|
||||||
container = docker_client.containers.run(
|
container = docker_client.containers.run(
|
||||||
args.image_name,
|
args.image_name,
|
||||||
@ -143,7 +142,6 @@ try:
|
|||||||
subprocess.run(['open', 'output/report.html'])
|
subprocess.run(['open', 'output/report.html'])
|
||||||
print("Report opened in browser")
|
print("Report opened in browser")
|
||||||
except (subprocess.CalledProcessError, FileNotFoundError):
|
except (subprocess.CalledProcessError, FileNotFoundError):
|
||||||
print("what happened")
|
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user