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

Method get_filename

library/python/runtime_py3/__res.py:421–428  ·  view source on GitHub ↗
(self, fullname)

Source from the content-addressed store, hash-verified

419
420 # PEP-302 extension 2 of 3: get __file__ without importing.
421 def get_filename(self, fullname):
422 modname = fullname
423 if self.is_package(fullname):
424 fullname += '.__init__'
425 relpath = self._find_mod_path(fullname)
426 if isinstance(relpath, bytes):
427 relpath = _s(relpath)
428 return relpath or modname
429
430 # PEP-302 extension 3 of 3: packaging introspection.
431 # Used by `linecache` (while printing tracebacks) unless module filename

Callers 4

get_sourceMethod · 0.95
__init__Method · 0.80
_rewrite_testFunction · 0.80
get_module_file_pathFunction · 0.80

Calls 3

is_packageMethod · 0.95
_find_mod_pathMethod · 0.95
isinstanceFunction · 0.85

Tested by

no test coverage detected