ause128: remove target file before copy over it

This commit is contained in:
Release Engineering 2010-12-08 14:52:11 +01:00
parent 9beed81d79
commit 9134cbd5d7

View file

@ -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: