

def _import_submodules(pkg):
    import importlib
    filename = pkg.__file__
    if ('__init__.py' not in filename):
        return
    for module in os.listdir(os.path.dirname(filename)):
        if (('__init__.py' in module) or (not module.endswith('.py'))):
            continue
        mod_name = ('%s.%s' % (pkg.__name__, module[:(- 3)]))
        importlib.import_module(mod_name)

dataset/ETHPy150Open CybOXProject/python-cybox/cybox/utils/__init__.py _import_submodules/original