MCPcopy Index your code
hub / github.com/RustPython/RustPython / get_filename

Method get_filename

Lib/zipimport.py:163–172  ·  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

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

Callers 2

runMethod · 0.45
_readmoduleFunction · 0.45

Calls 1

_get_module_codeFunction · 0.85

Tested by

no test coverage detected