Source

SCons / QMTest / SConscript

Diff from to

QMTest/SConscript

 #
 
 import os.path
+import string
 
 Import('build_dir', 'env')
 
 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
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.