Skip to content
Snippets Groups Projects
Unverified Commit f7bc42b1 authored by Yaman Umuroglu's avatar Yaman Umuroglu Committed by GitHub
Browse files

[Build] add exist_ok=True to all os.makedirs

parent 3cfa1896
No related branches found
No related tags found
No related merge requests found
......@@ -370,7 +370,7 @@ def step_synthesize_bitfile(model: ModelWrapper, cfg: DataflowBuildConfig):
if DataflowOutputType.BITFILE in cfg.generate_outputs:
bitfile_dir = cfg.output_dir + "/bitfile"
os.makedirs(bitfile_dir)
os.makedirs(bitfile_dir, exist_ok=True)
report_dir = cfg.output_dir + "/report"
os.makedirs(report_dir, exist_ok=True)
if cfg.shell_flow_type == ShellFlowType.VIVADO_ZYNQ:
......@@ -420,7 +420,7 @@ def step_deployment_package(model: ModelWrapper, cfg: DataflowBuildConfig):
deploy_dir = cfg.output_dir + "/deploy"
bitfile_dir = cfg.output_dir + "/bitfile"
driver_dir = cfg.output_dir + "/driver"
os.makedirs(deploy_dir)
os.makedirs(deploy_dir, exist_ok=True)
copytree(bitfile_dir, deploy_dir + "/bitfile")
copytree(driver_dir, deploy_dir + "/driver")
return model
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment