[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [20878] branches/soc-2009-kazanbas/ SConstruct: Make release/io dir installable on scons build.

Arystanbek Dyussenov arystan.d at gmail.com
Sun Jun 14 18:48:19 CEST 2009


Revision: 20878
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=20878
Author:   kazanbas
Date:     2009-06-14 18:48:19 +0200 (Sun, 14 Jun 2009)

Log Message:
-----------
Make release/io dir installable on scons build.

Modified Paths:
--------------
    branches/soc-2009-kazanbas/SConstruct

Modified: branches/soc-2009-kazanbas/SConstruct
===================================================================
--- branches/soc-2009-kazanbas/SConstruct	2009-06-14 15:14:17 UTC (rev 20877)
+++ branches/soc-2009-kazanbas/SConstruct	2009-06-14 16:48:19 UTC (rev 20878)
@@ -468,28 +468,18 @@
 			dotblenderinstall.append(env.Install(dir=td, source=srcfile))
 		
 		if env['WITH_BF_PYTHON']:
-			#-- .blender/scripts	
-			scriptpath='release/scripts'
-			for dp, dn, df in os.walk(scriptpath):
-				if 'CVS' in dn:
-					dn.remove('CVS')
-				if '.svn' in dn:
-					dn.remove('.svn')
-				dir=env['BF_INSTALLDIR']+'/.blender/scripts'+dp[len(scriptpath):]
-				source=[dp+os.sep+f for f in df]
-				scriptinstall.append(env.Install(dir=dir,source=source))
+			#-- .blender/scripts, .blender/ui, .blender/io
+			scriptpaths=['release/scripts', 'release/ui', 'release/io']
+			for scriptpath in scriptpaths:
+				for dp, dn, df in os.walk(scriptpath):
+					if 'CVS' in dn:
+						dn.remove('CVS')
+					if '.svn' in dn:
+						dn.remove('.svn')
+					dir=env['BF_INSTALLDIR']+'/.blender/'+os.path.basename(scriptpath)+dp[len(scriptpath):]
+					source=[dp+os.sep+f for f in df]
+					scriptinstall.append(env.Install(dir=dir,source=source))
 
-			#-- .blender/ui	
-			scriptpath='release/ui'
-			for dp, dn, df in os.walk(scriptpath):
-				if 'CVS' in dn:
-					dn.remove('CVS')
-				if '.svn' in dn:
-					dn.remove('.svn')
-				dir=env['BF_INSTALLDIR']+'/.blender/ui'+dp[len(scriptpath):]
-				source=[dp+os.sep+f for f in df]
-				scriptinstall.append(env.Install(dir=dir,source=source))
-
 #-- icons
 if env['OURPLATFORM']=='linux2':
 	iconlist = []





More information about the Bf-blender-cvs mailing list