summaryrefslogtreecommitdiff
path: root/l10ntools
diff options
context:
space:
mode:
authorHans-Joachim Lankenau <hjs@openoffice.org>2010-12-17 15:06:49 +0100
committerHans-Joachim Lankenau <hjs@openoffice.org>2010-12-17 15:06:49 +0100
commit948d4df2c2c6e78a3f3a96e079e958531f700545 (patch)
treeb16e006641c8ab489c6c54845ca53aba7b679556 /l10ntools
parent238883621ee13e53f535fb56c4dc8510e39a7f3b (diff)
parent9134cbd5d73ff5267e7f97ddae5b57beb02ca0df (diff)
CWS-TOOLING: integrate CWS ause128
Diffstat (limited to 'l10ntools')
-rw-r--r--l10ntools/scripts/tool/l10ntool.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/l10ntools/scripts/tool/l10ntool.py b/l10ntools/scripts/tool/l10ntool.py
index f1630027ccdc..b65c262b6020 100644
--- a/l10ntools/scripts/tool/l10ntool.py
+++ b/l10ntools/scripts/tool/l10ntool.py
@@ -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: