ause128: remove target file before copy over it
This commit is contained in:
parent
9beed81d79
commit
9134cbd5d7
1 changed files with 5 additions and 0 deletions
|
@ -116,6 +116,11 @@ class AbstractL10nTool:
|
|||
return self._options.inputfile[0] == '@'
|
||||
|
||||
def copy_file(self, inputfilename, outputfilename):
|
||||
try:
|
||||
os.remove(outputfilename)
|
||||
except:
|
||||
pass
|
||||
|
||||
try:
|
||||
shutil.copy(inputfilename, outputfilename)
|
||||
except IOError:
|
||||
|
|
Loading…
Reference in a new issue