!19002 Ignore errors when remove the directory in bprop mindir generator

Merge pull request !19002 from YuJianfeng/bprop_mindir
This commit is contained in:
i-robot 2021-06-29 08:19:48 +00:00 committed by Gitee
commit d385df8661
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ if __name__ == "__main__":
# copy the bprop source files to the installed path.
backup_suffix = "_generate_bak"
if copy_flag is True:
shutil.rmtree(bprop_installed_dir + backup_suffix)
shutil.rmtree(bprop_installed_dir + backup_suffix, ignore_errors=True)
os.rename(bprop_installed_dir, bprop_installed_dir + backup_suffix)
os.mkdir(bprop_installed_dir)
ls = os.listdir(bprop_src_dir)