diff options
author | Gary Oberbrunner <garyo@oberbrunner.com> | 2012-08-29 17:59:56 (GMT) |
---|---|---|
committer | Gary Oberbrunner <garyo@oberbrunner.com> | 2012-08-29 17:59:56 (GMT) |
commit | a54670d821ac18abc3880ef9ca03c2f84edd5ae6 (patch) | |
tree | 611657e6bda2cfa016b2f856747060ab10aba7d4 /SConstruct | |
parent | f88e3ac051975d312ca0e89f5674b5b9475fb96b (diff) | |
download | SCons-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-- | SConstruct | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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']) |