diff options
author | Nathan Letwory <nathan@letworyinteractive.com> | 2008-11-11 23:46:46 +0300 |
---|---|---|
committer | Nathan Letwory <nathan@letworyinteractive.com> | 2008-11-11 23:46:46 +0300 |
commit | 7850320ed21b576b1c063d84c87d71e1534e3eeb (patch) | |
tree | aa3dbe8aa60fdbb28a955176bc400a2c17e1835e | |
parent | 7f3b158030c1c7bdf22a0c6b7bc9a3995e6ea20a (diff) |
fix for another place where absolute paths for BF_BUILDDIR where a problem (generating results in the wrong place)
-rw-r--r-- | tools/Blender.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/Blender.py b/tools/Blender.py index 820adc03355..01e55f303d3 100644 --- a/tools/Blender.py +++ b/tools/Blender.py @@ -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 |