From a54670d821ac18abc3880ef9ca03c2f84edd5ae6 Mon Sep 17 00:00:00 2001 From: Gary Oberbrunner Date: Wed, 29 Aug 2012 13:59:56 -0400 Subject: Fix __FILE__ in SCons_revision when building on Windows. It was putting single-backslashes into string vars. Just use forward slashes instead. --- SConstruct | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']) -- cgit v0.12