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

Function get_module_file_path

library/python/pytest/module_utils.py:45–50  ·  view source on GitHub ↗

Get the file path for a module without importing it. For synthesized empty __init__.py modules, returns module_name as a fake file path.

(module_name)

Source from the content-addressed store, hash-verified

43
44
45def get_module_file_path(module_name):
46 """
47 Get the file path for a module without importing it.
48 For synthesized empty __init__.py modules, returns module_name as a fake file path.
49 """
50 return __res.importer.get_filename(module_name)
51
52
53_BASE_PATHS = None

Callers 1

get_proper_module_pathFunction · 0.85

Calls 1

get_filenameMethod · 0.80

Tested by

no test coverage detected