From bff1bef6bbb4e0cbfc06c6868b6422bc77fed7c4 Mon Sep 17 00:00:00 2001 From: Nathan Letwory Date: Wed, 15 Sep 2010 14:50:14 +0000 Subject: [PATCH] Fix SCons for [#23833]. Ensure that empty dirs will exist too. --- SConstruct | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SConstruct b/SConstruct index 11493511ffa..032b1eb1ea8 100644 --- a/SConstruct +++ b/SConstruct @@ -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