diff --git a/nton/gui/__init__.py b/nton/gui/__init__.py index 2f236d1..1d73754 100644 --- a/nton/gui/__init__.py +++ b/nton/gui/__init__.py @@ -704,7 +704,7 @@ def build(window: QMainWindow) -> bool: if save_path.exists(): save_path.unlink() - (Directories.output / f"{title_id}.nsp").rename(save_path) + shutil.move(Directories.output / f"{title_id}.nsp", save_path) window.log.info(f"Build NSP to %s", save_path) QMessageBox.information( diff --git a/nton/main.py b/nton/main.py index 8841c9e..85921b9 100644 --- a/nton/main.py +++ b/nton/main.py @@ -364,7 +364,7 @@ def build( if nsp_final_path.exists(): log.warning("An NSP forwarder of the same name, publisher and title ID already existed.") nsp_final_path.unlink() - (Directories.output / f"{id_}.nsp").rename(nsp_final_path) + shutil.move(Directories.output / f"{id_}.nsp", nsp_final_path) log.info(f"Done! The NSP has been saved to {nsp_final_path}") finally: