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