mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
make.py - cleanup old optional pbos before rename (#6254)
This commit is contained in:
parent
1994e301fd
commit
13d338a789
@ -432,9 +432,15 @@ def cleanup_optionals(mod):
|
|||||||
|
|
||||||
|
|
||||||
if (os.path.isfile(src_file_path)):
|
if (os.path.isfile(src_file_path)):
|
||||||
|
if (os.path.isfile(dst_file_path)):
|
||||||
|
# print("Cleanuping up old file {}".format(dst_file_path))
|
||||||
|
os.remove(dst_file_path);
|
||||||
#print("Preserving {}".format(file_name))
|
#print("Preserving {}".format(file_name))
|
||||||
os.renames(src_file_path,dst_file_path)
|
os.renames(src_file_path,dst_file_path)
|
||||||
if (os.path.isfile(src_sig_path)):
|
if (os.path.isfile(src_sig_path)):
|
||||||
|
if (os.path.isfile(dst_sig_path)):
|
||||||
|
# print("Cleanuping up old file {}".format(dst_sig_path))
|
||||||
|
os.remove(dst_sig_path);
|
||||||
#print("Preserving {}".format(sigFile_name))
|
#print("Preserving {}".format(sigFile_name))
|
||||||
os.renames(src_sig_path,dst_sig_path)
|
os.renames(src_sig_path,dst_sig_path)
|
||||||
except FileExistsError:
|
except FileExistsError:
|
||||||
|
Loading…
Reference in New Issue
Block a user