attempt to fix windows/scons issue I caused in a recent commit.
authorCampbell Barton <ideasman42@gmail.com>
Mon, 19 Sep 2011 15:18:58 +0000 (15:18 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 19 Sep 2011 15:18:58 +0000 (15:18 +0000)
source/blender/imbuf/SConscript

index 7c5b94b..eae9665 100644 (file)
@@ -1,4 +1,5 @@
 #!/usr/bin/python
+import os
 Import ('env')
 
 sources = env.Glob('intern/*.c')
@@ -23,7 +24,7 @@ if env['WITH_BF_OPENEXR']:
 if env['WITH_BF_TIFF']:
     defs.append('WITH_TIFF')
 else:
-       sources.remove('intern/tiff.c')
+       sources.remove(os.path.join('intern', 'tiff.c'))
 
 if env['WITH_BF_DDS']:
     defs.append('WITH_DDS')
@@ -34,7 +35,7 @@ if env['WITH_BF_CINEON']:
 if env['WITH_BF_HDR']:
     defs.append('WITH_HDR')
 else:
-       sources.remove('intern/radiance_hdr.c')
+       sources.remove(os.path.join('intern', 'radiance_hdr.c'))
 
 if env['WITH_BF_FFMPEG']:
     defs.append('WITH_FFMPEG')
@@ -44,7 +45,7 @@ if env['WITH_BF_OPENJPEG']:
     defs.append('WITH_OPENJPEG')
     incs += ' ' + env['BF_OPENJPEG_INC']
 else:
-       sources.remove('intern/jp2.c')
+       sources.remove(os.path.join('intern', 'jp2.c'))
 
 if env['WITH_BF_REDCODE']:
     defs.append('WITH_REDCODE')