MCPcopy Create free account
hub / github.com/Kaggle/docker-python / find_spec

Method find_spec

patches/sitecustomize.py:36–43  ·  view source on GitHub ↗
(self, fullname, path, target=None)

Source from the content-addressed store, hash-verified

34 return False
35
36 def find_spec(self, fullname, path, target=None):
37 if fullname in self._MODULES:
38 # If being called from kaggle_gcp, don't return our
39 # monkeypatched module to avoid circular dependency,
40 # since we call kaggle_gcp to load the module.
41 if self._is_called_from_kaggle_gcp():
42 return None
43 return importlib.machinery.ModuleSpec(fullname, GcpModuleLoader())
44
45
46class GcpModuleLoader(importlib.abc.Loader):

Callers

nothing calls this directly

Calls 2

GcpModuleLoaderClass · 0.85

Tested by

no test coverage detected