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