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)
This commit is contained in:
@@ -39,6 +39,7 @@ import string
|
|||||||
import shutil
|
import shutil
|
||||||
import glob
|
import glob
|
||||||
import re
|
import re
|
||||||
|
from tempfile import mkdtemp
|
||||||
|
|
||||||
import tools.Blender
|
import tools.Blender
|
||||||
import tools.btools
|
import tools.btools
|
||||||
@@ -224,11 +225,12 @@ if env['OURPLATFORM'] == 'linux2' :
|
|||||||
return result
|
return result
|
||||||
|
|
||||||
env2 = env.Copy( LIBPATH = env['BF_OPENAL'] )
|
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 ):
|
if conf.CheckFreeAlut( env2 ):
|
||||||
env['BF_OPENAL_LIB'] += ' alut'
|
env['BF_OPENAL_LIB'] += ' alut'
|
||||||
del env2
|
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:
|
for name in files:
|
||||||
os.remove(os.path.join(root, name))
|
os.remove(os.path.join(root, name))
|
||||||
for name in dirs:
|
for name in dirs:
|
||||||
|
Reference in New Issue
Block a user