diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-04-08 21:01:11 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-04-08 21:01:11 +0400 |
commit | dba13f922a1ebd0d2743571e62ddbcea4aabe9f9 (patch) | |
tree | 1c15251307362fb09e561f686543061f305efdce /SConstruct | |
parent | daeedc11444bae393a7b653bf75400c2865dfe0a (diff) |
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)
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/SConstruct b/SConstruct index 4c80c07a889..a95cad4a9a3 100644 --- a/SConstruct +++ b/SConstruct @@ -39,6 +39,7 @@ import string import shutil import glob import re +from tempfile import mkdtemp import tools.Blender import tools.btools @@ -224,11 +225,12 @@ if env['OURPLATFORM'] == 'linux2' : 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: |