From 92e954e07a330aba081e43d547c6684f97cf76d3 Mon Sep 17 00:00:00 2001 From: Ken Hughes Date: Mon, 15 May 2006 16:56:32 +0000 Subject: [PATCH] ===scons=== Bugfix #4088: Fix scons so that it installs subdirectories of release/scripts into .blender/scripts. --- SConstruct | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/SConstruct b/SConstruct index be2a8f8fa7e..fadd4b9dda0 100644 --- a/SConstruct +++ b/SConstruct @@ -280,8 +280,14 @@ for targetdir,srcfile in zip(dottargetlist, dotblendlist): dotblenderinstall.append(env.Install(dir=td, source=srcfile)) #-- .blender/scripts -scriptlist = glob.glob('release/scripts/*.py') -scriptinstall = env.Install(dir=env['BF_INSTALLDIR']+'/.blender/scripts', source=scriptlist) +scriptinstall = [] +scriptpath='release/scripts' +for dp, dn, df in os.walk(scriptpath): + if 'CVS' in dn: + dn.remove('CVS') + 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)) #-- plugins pluglist = []