Don't show generators in modules starting with underscore (templates)
This commit is contained in:
parent
11174f2ecc
commit
17d7cd80ab
|
@ -36,6 +36,8 @@ def getAllBoxGenerators():
|
||||||
path=__path__,
|
path=__path__,
|
||||||
prefix=__name__+'.'):
|
prefix=__name__+'.'):
|
||||||
module = importlib.import_module(modname)
|
module = importlib.import_module(modname)
|
||||||
|
if module.__name__.split('.')[-1].startswith("_"):
|
||||||
|
continue
|
||||||
for k, v in module.__dict__.items():
|
for k, v in module.__dict__.items():
|
||||||
if v is boxes.Boxes:
|
if v is boxes.Boxes:
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in New Issue