Don't show generators in modules starting with underscore (templates)

This commit is contained in:
Florian Festi 2019-07-12 00:47:09 +02:00
parent 11174f2ecc
commit 17d7cd80ab
1 changed files with 2 additions and 0 deletions

View File

@ -36,6 +36,8 @@ def getAllBoxGenerators():
path=__path__,
prefix=__name__+'.'):
module = importlib.import_module(modname)
if module.__name__.split('.')[-1].startswith("_"):
continue
for k, v in module.__dict__.items():
if v is boxes.Boxes:
continue