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