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