< for mod in importModules('', globals(), locals(), excludes=['Exporter']).values(): < if hasattr(mod, '__all__'): < names = mod.__all__ < else: < names = [n for n in dir(mod) if n[0] != '_'] < for k in names: < if hasattr(mod, k): < Exporters.append(getattr(mod, k)) --- > #for mod in importModules('', globals(), locals(), excludes=['Exporter']).values(): > # if hasattr(mod, '__all__'): > # names = mod.__all__ > # else: > # names = [n for n in dir(mod) if n[0] != '_'] > # for k in names: > # if hasattr(mod, k): > # Exporters.append(getattr(mod, k)) 23a24,32 > > from . import CSVExporter > from . import SVGExporter > from . import Matplotlib > from . import PrintExporter > from . import ImageExporter > > Exporters = [CSVExporter, SVGExporter, Matplotlib, PrintExporter,