summaryrefslogtreecommitdiffstats
path: root/scripts/lib/bsp/engine.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/bsp/engine.py')
-rw-r--r--scripts/lib/bsp/engine.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/lib/bsp/engine.py b/scripts/lib/bsp/engine.py
index 86cb51c5f4..36bd446e2b 100644
--- a/scripts/lib/bsp/engine.py
+++ b/scripts/lib/bsp/engine.py
@@ -571,7 +571,8 @@ def replace_file(replace_this, with_this):
571 the original filename. 571 the original filename.
572 """ 572 """
573 try: 573 try:
574 shutil.copy(with_this, replace_this) 574 replace_this.close()
575 shutil.copy(with_this, replace_this.name)
575 except IOError: 576 except IOError:
576 pass 577 pass
577 578