[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [17414] trunk/blender/tools/Blender.py: fix for another place where absolute paths for BF_BUILDDIR where a problem (generating results in the wrong place)

Nathan Letwory jesterking at letwory.net
Tue Nov 11 21:46:47 CET 2008


Revision: 17414
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=17414
Author:   jesterking
Date:     2008-11-11 21:46:46 +0100 (Tue, 11 Nov 2008)

Log Message:
-----------
fix for another place where absolute paths for BF_BUILDDIR where a problem (generating results in the wrong place)

Modified Paths:
--------------
    trunk/blender/tools/Blender.py

Modified: trunk/blender/tools/Blender.py
===================================================================
--- trunk/blender/tools/Blender.py	2008-11-11 20:26:53 UTC (rev 17413)
+++ trunk/blender/tools/Blender.py	2008-11-11 20:46:46 UTC (rev 17414)
@@ -443,7 +443,13 @@
 			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





More information about the Bf-blender-cvs mailing list