def findTwistedProjects(baseDirectory):
 projects = []
 for filePath in baseDirectory.walk():
  if (filePath.basename() == 'topfiles'):
   projectDirectory = filePath.parent()
   projects.append(Project(projectDirectory))
 return projects

def findTwistedProjects ( baseDirectory ) : projects = [ ] for filePath in baseDirectory . walk ( ) : if ( filePath . basename ( ) == 'topfiles' ) : projectDirectory = filePath . parent ( ) projects . append ( Project ( projectDirectory ) ) return projects
find all twisted-style projects beneath a base directory .