MCPcopy Create free account
hub / github.com/catboost/catboost / patched_cache_from_source

Function patched_cache_from_source

library/python/runtime_py3/__res.py:175–177  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

173 # Turn relative paths into absolute ones so that the python machinery stores the bytecode files next to the module.
174 # For more info see data flow in SourceLoader.get_data in contrib/tools/python3/Lib/importlib/_bootstrap_external.py
175 def patched_cache_from_source(filename):
176 filename = resfs_resolve(filename, check_existence=False)
177 return cache_from_source(_s(filename))
178
179 setattr(_frozen_importlib_external, 'cache_from_source', patched_cache_from_source)
180

Callers

nothing calls this directly

Calls 1

resfs_resolveFunction · 0.85

Tested by

no test coverage detected