Lines Matching refs:spec
95 spec = _bootstrap._find_spec(name, path)
97 if spec is None:
99 if spec.loader is None:
100 if spec.submodule_search_locations is None:
101 raise ImportError('spec for {} missing loader'.format(name),
105 return spec.loader
166 spec = module.__spec__ = _bootstrap._find_spec(name, pkgpath, target)
167 if spec is None:
168 raise ModuleNotFoundError(f"spec not found for the module {name!r}", name=name)
169 _bootstrap._exec(spec, module)