5 lines
199 B
Python
Raw Normal View History

2017-12-10 14:53:57 +08:00
from os.path import dirname, basename, isfile
import glob
modules = glob.glob(dirname(__file__)+"/*.py")
__all__ = [ basename(f)[:-3] for f in modules if isfile(f) and not f.endswith('__init__.py')]