MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / read_prelude

Function read_prelude

scripts/generate-sdk.py:46–48  ·  view source on GitHub ↗

Return the hand-maintained prelude fragment, or empty if absent.

(path)

Source from the content-addressed store, hash-verified

44
45
46def read_prelude(path):
47 """Return the hand-maintained prelude fragment, or empty if absent."""
48 return path.read_text(encoding="utf-8").rstrip() + "\n" if path.exists() else ""
49
50
51def is_byte_param(name, prop):

Callers 2

emit_jsFunction · 0.85
emit_luaFunction · 0.85

Calls 1

existsMethod · 0.80

Tested by

no test coverage detected