mirror of
https://gitee.com/openharmony/developtools_hdc
synced 2024-11-27 09:11:24 +00:00
fix: hash gen scripts allow dir exists.
Signed-off-by: TaowerfulMAX <liurantao@huawei.com>
This commit is contained in:
parent
5640ded2e6
commit
91261692f0
@ -42,7 +42,7 @@ def write_output_file():
|
||||
if output_dir == "":
|
||||
return
|
||||
if not os.path.exists(output_dir):
|
||||
os.makedirs(output_dir)
|
||||
os.makedirs(output_dir, exist_ok=True)
|
||||
with open("{}{}".format(output_dir, output_file_name), 'w') as fd_struct:
|
||||
for i in struct_vals:
|
||||
fd_struct.write(i)
|
||||
|
Loading…
Reference in New Issue
Block a user