MCPcopy Create free account
hub / github.com/bugy/script-server / _build_name_from_path

Function _build_name_from_path

src/model/script_config.py:360–363  ·  view source on GitHub ↗
(file_path)

Source from the content-addressed store, hash-verified

358
359
360def _build_name_from_path(file_path):
361 filename = os.path.basename(file_path)
362 name = os.path.splitext(filename)[0]
363 return name.strip()
364
365
366def read_short(file_path, json_object):

Callers 2

_read_nameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected