SConscript 319 B

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