Fix SCons for [#23833]. Ensure that empty dirs will exist too.

This commit is contained in:
Nathan Letwory 2010-09-15 14:50:14 +00:00
parent d5ee95644d
commit bff1bef6bb
1 changed files with 3 additions and 0 deletions

View File

@ -492,6 +492,9 @@ if env['OURPLATFORM']!='darwin':
dir += os.sep + os.path.basename(scriptpath) + dp[len(scriptpath):]
source=[os.path.join(dp, f) for f in df if f[-3:]!='pyc']
# To ensure empty dirs are created too
if len(source)==0:
env.Execute(Mkdir(dir))
scriptinstall.append(env.Install(dir=dir,source=source))
#-- icons