Fix SCons for [#23833]. Ensure that empty dirs will exist too.
authorNathan Letwory <nathan@letworyinteractive.com>
Wed, 15 Sep 2010 14:50:14 +0000 (14:50 +0000)
committerNathan Letwory <nathan@letworyinteractive.com>
Wed, 15 Sep 2010 14:50:14 +0000 (14:50 +0000)
SConstruct

index 11493511ffad18a2384b010382380443a397f976..032b1eb1ea85d8adf4c8d37b3b50d6e27877a99f 100644 (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