summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 86cb51c..36bd446 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