def find_module_file(module, dirlist):
 list = find_file(module, [], dirlist)
 if (not list):
  return module
 if (len(list) > 1):
  log.info(('WARNING: multiple copies of %s found' % module))
 return os.path.join(list[0], module)

def find_module_file ( module , dirlist ) : list = find_file ( module , [ ] , dirlist ) if ( not list ) : return module if ( len ( list ) > 1 ) : log . info ( ( 'WARNING: multiple copies of %s found' % module ) ) return os . path . join ( list [ 0 ] , module )
find a module in a set of possible folders .