[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [14367] trunk/blender/SConstruct: minor edit to last commit, fixed a possible python error

Campbell Barton ideasman42 at gmail.com
Tue Apr 8 22:08:50 CEST 2008


Revision: 14367
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=14367
Author:   campbellbarton
Date:     2008-04-08 22:08:46 +0200 (Tue, 08 Apr 2008)

Log Message:
-----------
minor edit to last commit, fixed a possible python error

Modified Paths:
--------------
    trunk/blender/SConstruct

Modified: trunk/blender/SConstruct
===================================================================
--- trunk/blender/SConstruct	2008-04-08 19:58:17 UTC (rev 14366)
+++ trunk/blender/SConstruct	2008-04-08 20:08:46 UTC (rev 14367)
@@ -225,17 +225,18 @@
             return result
 
         env2 = env.Copy( LIBPATH = env['BF_OPENAL'] ) 
-	sconf_temp = mkdtemp()
+        sconf_temp = mkdtemp()
         conf = Configure( env2, {'CheckFreeAlut' : CheckFreeAlut}, sconf_temp, '/dev/null' )
         if conf.CheckFreeAlut( env2 ):
             env['BF_OPENAL_LIB'] += ' alut'
         del env2
+        root = ''
         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:
                 os.rmdir(os.path.join(root, name))
-        os.rmdir(root)
+        if root: os.rmdir(root)
 
 if len(B.quickdebug) > 0 and printdebug != 0:
     print B.bc.OKGREEN + "Buildings these libs with debug symbols:" + B.bc.ENDC





More information about the Bf-blender-cvs mailing list