From 9134cbd5d73ff5267e7f97ddae5b57beb02ca0df Mon Sep 17 00:00:00 2001 From: Release Engineering Date: Wed, 8 Dec 2010 14:52:11 +0100 Subject: ause128: remove target file before copy over it --- l10ntools/scripts/tool/l10ntool.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'l10ntools') 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: -- cgit