diff options
author | Gary Oberbrunner <garyo@oberbrunner.com> | 2012-08-29 13:59:56 -0400 |
---|---|---|
committer | Gary Oberbrunner <garyo@oberbrunner.com> | 2012-08-29 13:59:56 -0400 |
commit | e7bd33843093affec4fc9d182613248f19ca9e10 (patch) | |
tree | 611657e6bda2cfa016b2f856747060ab10aba7d4 /SConstruct | |
parent | 165d71db65ce4f54627a91d1f7e17b7d9317b3eb (diff) | |
download | scons-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-- | 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']) |