!19002 Ignore errors when remove the directory in bprop mindir generator
Merge pull request !19002 from YuJianfeng/bprop_mindir
This commit is contained in:
commit
d385df8661
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue