MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / get_filename

Method get_filename

tools/python-3.11.9-amd64/Lib/zipimport.py:220–229  ·  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

218
219 # Return a string matching __file__ for the named module
220 def get_filename(self, fullname):
221 """get_filename(fullname) -> filename string.
222
223 Return the filename for the specified module or raise ZipImportError
224 if it couldn't be imported.
225 """
226 # Deciding the filename requires working out where the code
227 # would come from if the module was actually loaded
228 code, ispackage, modpath = _get_module_code(self, fullname)
229 return modpath
230
231
232 def get_source(self, fullname):

Callers

nothing calls this directly

Calls 1

_get_module_codeFunction · 0.85

Tested by

no test coverage detected