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