def collect_registered_bears_dirs(entrypoint):
 collected_dirs = []
 for ep in pkg_resources.iter_entry_points(entrypoint):
  registered_package = None
  try:
   registered_package = ep.load()
  except pkg_resources.DistributionNotFound:
   continue
  collected_dirs.append(os.path.abspath(os.path.dirname(registered_package.__file__)))
 return collected_dirs

def collect_registered_bears_dirs ( entrypoint ) : collected_dirs = [ ] for ep in pkg_resources . iter_entry_points ( entrypoint ) : registered_package = None try : registered_package = ep . load ( ) except pkg_resources . DistributionNotFound : continue collected_dirs . append ( os . path . abspath ( os . path . dirname ( registered_package . __file__ ) ) ) return collected_dirs
searches setuptools for the entrypoint and returns the bear directories given by the module .