From 267641abfdd5a49af6b868bd4f145694cabbab60 Mon Sep 17 00:00:00 2001 From: Serge Rehbinder Date: Tue, 3 Jan 2017 12:10:18 +0100 Subject: [PATCH] use shutil.move instead of os.remove --- src/compilation.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/compilation.py b/src/compilation.py index bdd789f..c315149 100644 --- a/src/compilation.py +++ b/src/compilation.py @@ -19,6 +19,7 @@ import os import subprocess import sys +import shutil import src @@ -473,7 +474,7 @@ CC=\\"hack_libtool\\"%g" libtool''' # write the logTxtFile copy it to the destination, and then recreate # it as it was self.logger.logTxtFile.close() - os.rename(self.logger.txtFilePath, file_path) + shutil.move(self.logger.txtFilePath, file_path) self.logger.logTxtFile = open(str(self.logger.txtFilePath), 'w') self.logger.logTxtFile.write(open(file_path, "r").read()) \ No newline at end of file -- 2.39.2