diff options
author | Release Engineering <releng@openoffice.org> | 2010-12-08 14:52:11 +0100 |
---|---|---|
committer | Release Engineering <releng@openoffice.org> | 2010-12-08 14:52:11 +0100 |
commit | 9134cbd5d73ff5267e7f97ddae5b57beb02ca0df (patch) | |
tree | 4e17c6936e4bc1bfcd569a948d2a2885e7d39a6c /l10ntools/scripts | |
parent | 9beed81d79dcdccf20d39ce0cb65865342151fb1 (diff) |
ause128: remove target file before copy over it
Diffstat (limited to 'l10ntools/scripts')
-rw-r--r-- | l10ntools/scripts/tool/l10ntool.py | 5 |
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: |