def __get_extra_extension_classes(paths):
extra_classes = []<EOL>wset = pkg_resources.WorkingSet([])<EOL>distributions, _ = wset.find_plugins(pkg_resources.Environment(paths))<EOL>for dist in distributions:<EOL><INDENT>sys.path.append(dist.location)<EOL>wset.add(dist)<EOL><DEDENT>for entry_point in wset.iter_entry_points(group='<STR_LIT>',<EOL>name='<STR_LIT>'):<EOL><INDENT>try:<EOL><INDENT>activation_function = entry_point.load()<EOL>classes = activation_function()<EOL><DEDENT>except Exception as exc:<EOL><INDENT>info("<STR_LIT>" % (entry_point.module_name, exc))<EOL>debug(traceback.format_exc())<EOL>continue<EOL><DEDENT>for klass in classes:<EOL><INDENT>extra_classes.append(klass)<EOL><DEDENT><DEDENT>return extra_classes<EOL>
Banana banana