All pastes #200247 Raw Edit

import eggs

public python v1 · immutable
#200247 ·published 2006-10-13 01:32 UTC
rendered paste body
	for entryPoint in pkg_resources.iter_entry_points("jokosher.extensions"):		# for each extension load a reference to the class,		# instantiate it and then call the startup (if exists)		extension_class = entryPoint.load()		extension = extension_class()		try:			extension.startup(API)		except:			pass		#again, don't block the gui when loading many extensions		while gtk.events_pending():			gtk.main_iteration()