lisa.utils.import_all_submodules#

lisa.utils.import_all_submodules(pkg, best_effort=False)[source]#

Import all submodules of a given package.

Parameters:
  • pkg (types.ModuleType) – Package to import.

  • best_effort (bool) – If True, modules in the hierarchy that cannot be imported will be silently skipped.