Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Hughes <khughes@pacific.edu>2006-05-15 20:56:32 +0400
committerKen Hughes <khughes@pacific.edu>2006-05-15 20:56:32 +0400
commit92e954e07a330aba081e43d547c6684f97cf76d3 (patch)
treefa384642f6eaa16a453454186873511621de7574 /SConstruct
parent51eb744807f94b6af89bbf3117014307e9a27429 (diff)
===scons===
Bugfix #4088: Fix scons so that it installs subdirectories of release/scripts into .blender/scripts.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct10
1 files 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 = []