MCPcopy Index your code
hub / github.com/python/cpython / get_filename

Method get_filename

Lib/zipimport.py:158–167  ·  view source on GitHub ↗

get_filename(fullname) -> filename string. Return the filename for the specified module or raise ZipImportError if it couldn't be imported.

(self, fullname)

Source from the content-addressed store, hash-verified

156
157 # Return a string matching __file__ for the named module
158 def get_filename(self, fullname):
159 """get_filename(fullname) -> filename string.
160
161 Return the filename for the specified module or raise ZipImportError
162 if it couldn't be imported.
163 """
164 # Deciding the filename requires working out where the code
165 # would come from if the module was actually loaded
166 code, ispackage, modpath = _get_module_code(self, fullname)
167 return modpath
168
169
170 def get_source(self, fullname):

Callers 4

mainFunction · 0.45
runMethod · 0.45
_readmoduleFunction · 0.45

Calls 1

_get_module_codeFunction · 0.85

Tested by

no test coverage detected