1from building import * 2 3cwd = GetCurrentDir() 4objs = [] 5list = os.listdir(os.path.join(cwd, '..')) 6 7for d in list: 8 if (d != 'M4' and d != 'M0'): 9 path = os.path.join(cwd, '..', d) 10 if os.path.isfile(os.path.join(path, 'SConscript')): 11 objs = objs + SConscript(os.path.join(path, 'SConscript')) 12 13Return('objs') 14