[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [14364] trunk/blender/SConstruct: use mkdtemp for the scons tempfile path rather then '.sconf_temp', this way 2 blenders can be compiled at once from the same path.
Campbell Barton
ideasman42 at gmail.com
Tue Apr 8 19:01:11 CEST 2008
Revision: 14364
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=14364
Author: campbellbarton
Date: 2008-04-08 19:01:11 +0200 (Tue, 08 Apr 2008)
Log Message:
-----------
use mkdtemp for the scons tempfile path rather then '.sconf_temp', this way 2 blenders can be compiled at once from the same path. (debug and release for instance, as long as they build in their own dir)
Modified Paths:
--------------
trunk/blender/SConstruct
Modified: trunk/blender/SConstruct
===================================================================
--- trunk/blender/SConstruct 2008-04-08 16:56:43 UTC (rev 14363)
+++ trunk/blender/SConstruct 2008-04-08 17:01:11 UTC (rev 14364)
@@ -39,6 +39,7 @@
import shutil
import glob
import re
+from tempfile import mkdtemp
import tools.Blender
import tools.btools
@@ -224,11 +225,12 @@
return result
env2 = env.Copy( LIBPATH = env['BF_OPENAL'] )
- conf = Configure( env2, {'CheckFreeAlut' : CheckFreeAlut}, '.sconf_temp', '/dev/null' )
+ sconf_temp = mkdtemp()
+ conf = Configure( env2, {'CheckFreeAlut' : CheckFreeAlut}, sconf_temp, '/dev/null' )
if conf.CheckFreeAlut( env2 ):
env['BF_OPENAL_LIB'] += ' alut'
del env2
- for root, dirs, files in os.walk('.sconf_temp', topdown=False):
+ for root, dirs, files in os.walk(sconf_temp, topdown=False):
for name in files:
os.remove(os.path.join(root, name))
for name in dirs:
More information about the Bf-blender-cvs
mailing list