test
This commit is contained in:
parent
5d55a5e587
commit
36bce6d433
@ -1,6 +1,4 @@
|
||||
import os
|
||||
for module in os.listdir(os.path.dirname(__file__)):
|
||||
if module == '__init__.py' or module[-3:] != '.py':
|
||||
continue
|
||||
__import__(module[:-3], locals(), globals())
|
||||
del module
|
||||
from os.path import dirname, basename, isfile, join
|
||||
import glob
|
||||
modules = glob.glob(join(dirname(__file__), "*.py"))
|
||||
__all__ = [basename(f)[:-3] for f in modules if isfile(f) and not f.endswith('__init__.py')]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user