1from os.path import dirname, basename, isfile 2import glob 3modules = glob.glob(dirname(__file__)+"/*.py") 4__all__ = [ basename(f)[:-3] for f in modules if isfile(f) and not f.endswith('__init__.py')] 5