1. SCons
  2. Core
  3. SCons

Commits

Gary Oberbrunner  committed 3c06b72

Fix __FILE__ in SCons_revision when building on Windows.

It was putting single-backslashes into string vars.
Just use forward slashes instead.

  • Participants
  • Parent commits 9d3b924
  • Branches default

Comments (0)

Files changed (1)

File SConstruct

View file
     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'])