3
0

__init__.py 343 B

12345678910
  1. import glob
  2. from os.path import dirname, basename
  3. # Create a list consisting of all attack classes names in this package
  4. __all__ = []
  5. modules = glob.glob(dirname(__file__) + "/*.py")
  6. for m in modules:
  7. c = str(basename(m)[:-3])
  8. if not c.startswith('__') and not c.startswith('Base') and c.endswith('Attack'):
  9. __all__.append(c)