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

Method _find_mod_path

library/python/runtime_py3/__res.py:326–331  ·  view source on GitHub ↗

Find arcadia relative path by module name

(self, fullname)

Source from the content-addressed store, hash-verified

324 return importer
325
326 def _find_mod_path(self, fullname):
327 """Find arcadia relative path by module name"""
328 relpath = resfs_src(mod_path(fullname), resfs_file=True)
329 if relpath or not self.arcadia_source_finder:
330 return relpath
331 return self.arcadia_source_finder.get_module_path(fullname)
332
333 def find_spec(self, fullname, path=None, target=None):
334 # Поддежка переопределения стандартного distutils из пакетом из setuptools

Callers 3

find_specMethod · 0.95
get_filenameMethod · 0.95
get_codeMethod · 0.95

Calls 3

resfs_srcFunction · 0.85
mod_pathFunction · 0.85
get_module_pathMethod · 0.80

Tested by

no test coverage detected