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

Function mod_path

library/python/runtime_py3/__res.py:283–287  ·  view source on GitHub ↗

Return the resfs path to the source code of the module with the given name.

(mod)

Source from the content-addressed store, hash-verified

281
282
283def mod_path(mod):
284 """
285 Return the resfs path to the source code of the module with the given name.
286 """
287 return py_prefix + _b(mod).replace(b'.', b'/') + b'.py'
288
289
290class ResourceImporter(SourceFileLoader):

Callers 3

_find_mod_pathMethod · 0.85
get_sourceMethod · 0.85
get_codeMethod · 0.85

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected