1# RT-Thread building script for bridge 2 3import os 4from building import * 5 6cwd = GetCurrentDir() 7objs = [] 8folder_list = os.listdir(cwd) 9 10for folder in folder_list: 11 path = os.path.join(cwd, folder) 12 if os.path.isfile(os.path.join(path, 'SConscript')): 13 objs = objs + SConscript(os.path.join(folder, 'SConscript')) 14 15Return('objs') 16