summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorGary Oberbrunner <garyo@oberbrunner.com>2012-08-29 13:59:56 -0400
committerGary Oberbrunner <garyo@oberbrunner.com>2012-08-29 13:59:56 -0400
commite7bd33843093affec4fc9d182613248f19ca9e10 (patch)
tree611657e6bda2cfa016b2f856747060ab10aba7d4 /SConstruct
parent165d71db65ce4f54627a91d1f7e17b7d9317b3eb (diff)
downloadscons-e7bd33843093affec4fc9d182613248f19ca9e10.tar.gz
Fix __FILE__ in SCons_revision when building on Windows.
It was putting single-backslashes into string vars. Just use forward slashes instead.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct2
1 files changed, 1 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index 46a7dafd..4fd8c812 100644
--- a/SConstruct
+++ b/SConstruct
@@ -367,7 +367,7 @@ def SCons_revision(target, source, env):
contents = contents.replace('__COPYRIGHT' + '__', env['COPYRIGHT'])
contents = contents.replace('__DATE' + '__', env['DATE'])
contents = contents.replace('__DEVELOPER' + '__', env['DEVELOPER'])
- contents = contents.replace('__FILE' + '__', str(source[0]))
+ contents = contents.replace('__FILE' + '__', str(source[0]).replace('\\', '/'))
contents = contents.replace('__MONTH_YEAR'+ '__', env['MONTH_YEAR'])
contents = contents.replace('__REVISION' + '__', env['REVISION'])
contents = contents.replace('__VERSION' + '__', env['VERSION'])