fix for another place where absolute paths for BF_BUILDDIR where a problem (generatin...
authorNathan Letwory <nathan@letworyinteractive.com>
Tue, 11 Nov 2008 20:46:46 +0000 (20:46 +0000)
committerNathan Letwory <nathan@letworyinteractive.com>
Tue, 11 Nov 2008 20:46:46 +0000 (20:46 +0000)
tools/Blender.py

index 820adc03355baad0d1cc0b38658e68b1972e7565..01e55f303d3fbfe86a530523c01746d48d8b5fee 100644 (file)
@@ -443,7 +443,13 @@ class BlenderEnvironment(SConsEnvironment):
                        lenv.Append(CFLAGS = lenv['C_WARN'])
                        lenv.Append(CCFLAGS = lenv['CC_WARN'])
                        lenv.Append(CXXFLAGS = lenv['CXX_WARN'])
-                       lib = lenv.Library(target= '#'+root_build_dir+'lib/'+libname, source=sources)
+                       
+                       targetdir = root_build_dir+'lib/' + libname
+                       if root_build_dir[0]==os.sep or root_build_dir[1]==':':
+                               pass
+                       else:
+                               targetdir = '#'+targetdir
+                       lib = lenv.Library(target= targetdir, source=sources)
                        SConsEnvironment.Default(self, lib) # we add to default target, because this way we get some kind of progress info during build
                else:
                        print bc.WARNING+'Not building '+bc.ENDC+bc.OKGREEN+libname+bc.ENDC+' for '+bc.OKBLUE+'BF_QUICK'+bc.ENDC