summaryrefslogtreecommitdiffstats
path: root/SConstruct
diff options
context:
space:
mode:
authorGary Oberbrunner <garyo@oberbrunner.com>2012-08-29 17:59:56 (GMT)
committerGary Oberbrunner <garyo@oberbrunner.com>2012-08-29 17:59:56 (GMT)
commita54670d821ac18abc3880ef9ca03c2f84edd5ae6 (patch)
tree611657e6bda2cfa016b2f856747060ab10aba7d4 /SConstruct
parentf88e3ac051975d312ca0e89f5674b5b9475fb96b (diff)
downloadSCons-a54670d821ac18abc3880ef9ca03c2f84edd5ae6.zip
SCons-a54670d821ac18abc3880ef9ca03c2f84edd5ae6.tar.gz
SCons-a54670d821ac18abc3880ef9ca03c2f84edd5ae6.tar.bz2
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 46a7daf..4fd8c81 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'])