aboutsummaryrefslogtreecommitdiffstats
path: root/build/scripts/build_pln_header.py
diff options
context:
space:
mode:
Diffstat (limited to 'build/scripts/build_pln_header.py')
-rwxr-xr-xbuild/scripts/build_pln_header.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/build/scripts/build_pln_header.py b/build/scripts/build_pln_header.py
index 96bafa99f8..c73693f444 100755
--- a/build/scripts/build_pln_header.py
+++ b/build/scripts/build_pln_header.py
@@ -23,10 +23,10 @@ def BuildPlnHeader():
tmpFile.write('void {0}SSE(const float* const* factors, float* result);\n'.format(name))
tmpFile.close()
try:
- os.remove(outPath)
- except:
- pass
- try:
+ os.remove(outPath)
+ except:
+ pass
+ try:
os.rename(tmpPath, outPath)
except:
print >>sys.stdout, 'Error: Failed to rename ' + tmpPath + ' to ' + outPath