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

Method _is_called_from_kaggle_gcp

patches/sitecustomize.py:29–34  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

27 pass
28
29 def _is_called_from_kaggle_gcp(self):
30 import inspect
31 for frame in inspect.stack():
32 if os.path.basename(frame.filename) == self._KAGGLE_GCP_PATH:
33 return True
34 return False
35
36 def find_spec(self, fullname, path, target=None):
37 if fullname in self._MODULES:

Callers 1

find_specMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected