pymel.util.common.subpackages

subpackages(packagemod)

Given a module object, returns an iterator which yields a tuple (modulename, moduleobject, ispkg) for the given module and all it’s submodules/subpackages.