MCPcopy
hub / github.com/pex-tool/pex / script_name

Function script_name

pex/sysconfig.py:33–38  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

31
32
33def script_name(name):
34 # type: (_Text) -> _Text
35 if not EXE_EXTENSION:
36 return name
37 stem, ext = os.path.splitext(name)
38 return name if (ext and ext.lower() in EXE_EXTENSIONS) else name + EXE_EXTENSION
39
40
41class _CurrentLibC(object):

Callers 7

findMethod · 0.90
bin_fileMethod · 0.90
_activate_venv_dirFunction · 0.90
pythonMethod · 0.90
_normalize_recordFunction · 0.90

Calls 1

lowerMethod · 0.80

Tested by

no test coverage detected