Procházet zdrojové kódy

sconscript:delate non-used files

Meco Man před 3 roky
rodič
revize
fe6526b4d3
1 změnil soubory, kde provedl 9 přidání a 2 odebrání
  1. 9 2
      SConscript

+ 9 - 2
SConscript

@@ -1,5 +1,6 @@
 import os
 import os
-from building import * 
+import shutil
+from building import *
 
 
 cwd = GetCurrentDir()
 cwd = GetCurrentDir()
 objs = []
 objs = []
@@ -9,5 +10,11 @@ for d in list:
     path = os.path.join(cwd, d)
     path = os.path.join(cwd, d)
     if os.path.isfile(os.path.join(path, 'SConscript')):
     if os.path.isfile(os.path.join(path, 'SConscript')):
         objs = objs + SConscript(os.path.join(d, 'SConscript'))
         objs = objs + SConscript(os.path.join(d, 'SConscript'))
-    
+
+#delate non-used files
+try:
+    shutil.rmtree(os.path.join(cwd,'legacy'))
+except:
+    pass
+
 Return('objs')
 Return('objs')