def GetIncludedBuildFiles(build_file_path, aux_data, included=None):
 if (included == None):
  included = []
 if (build_file_path in included):
  return included
 included.append(build_file_path)
 for included_build_file in aux_data[build_file_path].get('included', []):
  GetIncludedBuildFiles(included_build_file, aux_data, included)
 return included

def GetIncludedBuildFiles ( build_file_path , aux_data , included = None ) : if ( included == None ) : included = [ ] if ( build_file_path in included ) : return included included . append ( build_file_path ) for included_build_file in aux_data [ build_file_path ] . get ( 'included' , [ ] ) : GetIncludedBuildFiles ( included_build_file , aux_data , included ) return included
return a list of all build files included into build_file_path .