[Windows] One more use of rename changed to replace

This commit is contained in:
Salvador E. Tropea 2022-12-26 09:06:00 -03:00
parent cd89f8b235
commit 6d8ca3f163
1 changed files with 1 additions and 1 deletions

View File

@ -1003,7 +1003,7 @@ class PCB_PrintOptions(VariantOptions):
id, ext = self.get_id_and_ext(n, p.page_id)
user_name = self.expand_filename(output_dir, self.output, id, ext)
if cur_name != user_name and os.path.isfile(cur_name):
os.rename(cur_name, user_name)
os.replace(cur_name, user_name)
def generate_output(self, output):
self.check_tools()