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

Function _modname

tools/python-3.11.9-amd64/Lib/trace.py:119–124  ·  view source on GitHub ↗

Return a plausible module name for the path.

(path)

Source from the content-addressed store, hash-verified

117 return 0
118
119def _modname(path):
120 """Return a plausible module name for the path."""
121
122 base = os.path.basename(path)
123 filename, ext = os.path.splitext(base)
124 return filename
125
126def _fullmodname(path):
127 """Return a plausible module name for the path."""

Callers 3

write_resultsMethod · 0.85
globaltrace_ltMethod · 0.85

Calls 2

basenameMethod · 0.80
splitextMethod · 0.80

Tested by

no test coverage detected