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

Function _read_name

src/model/script_config.py:352–357  ·  view source on GitHub ↗
(file_path, json_object)

Source from the content-addressed store, hash-verified

350
351
352def _read_name(file_path, json_object):
353 name = json_object.get('name')
354 if not name:
355 name = _build_name_from_path(file_path)
356
357 return name.strip()
358
359
360def _build_name_from_path(file_path):

Callers 1

read_shortFunction · 0.85

Calls 2

_build_name_from_pathFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected