def find_wheels(projects, search_dirs):
 wheels = []
 for project in projects:
  for dirname in search_dirs:
   files = glob.glob(os.path.join(dirname, (project + '-*.whl')))
   if files:
    wheels.append(os.path.abspath(files[0]))
    break
  else:
   logger.fatal(('Cannot find a wheel for %s' % (project,)))
 return wheels

def find_wheels ( projects , search_dirs ) : wheels = [ ] for project in projects : for dirname in search_dirs : files = glob . glob ( os . path . join ( dirname , ( project + '-*.whl' ) ) ) if files : wheels . append ( os . path . abspath ( files [ 0 ] ) ) break else : logger . fatal ( ( 'Cannot find a wheel for %s' % ( project , ) ) ) return wheels
find wheels from which we can import projects .