summaryrefslogtreecommitdiffstats
path: root/QMTest/SConscript
diff options
context:
space:
mode:
Diffstat (limited to 'QMTest/SConscript')
-rw-r--r--QMTest/SConscript8
1 files changed, 7 insertions, 1 deletions
diff --git a/QMTest/SConscript b/QMTest/SConscript
index 3aa7d9c..e141a51 100644
--- a/QMTest/SConscript
+++ b/QMTest/SConscript
@@ -26,6 +26,7 @@
#
import os.path
+import string
Import('build_dir', 'env')
@@ -45,7 +46,12 @@ files = [
def copy(target, source, env):
t = str(target[0])
s = str(source[0])
- open(t, 'wb').write(open(s, 'rb').read())
+ c = open(s, 'rb').read()
+ # Note: We construct the __ VERSION __ substitution string at
+ # run-time so it doesn't get replaced when this file gets copied
+ # into the tree for packaging.
+ c = string.replace(c, '__' + 'VERSION' + '__', env['VERSION'])
+ open(t, 'wb').write(c)
for file in files:
# Guarantee that real copies of these files always exist in