test
This commit is contained in:
parent
d9b559477f
commit
9cfd7f964a
@ -1,4 +1,12 @@
|
|||||||
import pkgutil
|
#!/usr/bin/python
|
||||||
__path__ = pkgutil.extend_path(__path__, __name__)
|
# -*- encoding: utf-8 -*-
|
||||||
for imp, module, ispackage in pkgutil.walk_packages(path=__path__, prefix=__name__+'.'):
|
|
||||||
__import__(module)
|
import os
|
||||||
|
import glob
|
||||||
|
|
||||||
|
all_list = list()
|
||||||
|
for f in glob.glob(os.path.dirname(__file__)+"/*.py"):
|
||||||
|
if os.path.isfile(f) and not os.path.basename(f).startswith('_'):
|
||||||
|
all_list.append(os.path.basename(f)[:-3])
|
||||||
|
|
||||||
|
__all__ = all_list
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user