[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [46923] trunk/blender/SConstruct: Scons - only go to the trouble of making these directories if they don' t already

Joshua Leung aligorith at gmail.com
Wed May 23 06:15:50 CEST 2012


Revision: 46923
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=46923
Author:   aligorith
Date:     2012-05-23 04:15:50 +0000 (Wed, 23 May 2012)
Log Message:
-----------
Scons - only go to the trouble of making these directories if they don't already
exist!

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

Modified: trunk/blender/SConstruct
===================================================================
--- trunk/blender/SConstruct	2012-05-23 04:04:52 UTC (rev 46922)
+++ trunk/blender/SConstruct	2012-05-23 04:15:50 UTC (rev 46923)
@@ -553,7 +553,7 @@
 
                 source=[os.path.join(dp, f) for f in df if not f.endswith(".pyc")]
                 # To ensure empty dirs are created too
-                if len(source)==0:
+                if len(source)==0 and not os.path.exists(dir):
                     env.Execute(Mkdir(dir))
                 scriptinstall.append(env.Install(dir=dir,source=source))
         if env['WITH_BF_CYCLES']:




More information about the Bf-blender-cvs mailing list