INNER CODE UNIT · Python

log

IvanMurzak/Unity-MCP · .github/scripts/chain_feed.py:545

def log(line):
    print(line, flush=True)


def read_text(path):
    """Read with newline translation OFF so a CRLF file survives a surgical edit."""
    with io.open(str(path), "r", encoding="utf-8", newline="") as handle:
        return handle.read()


def write_text(path, text, newline=""):
    Path(path).parent.mkdir(parents=True, exist_ok=True)
    with io.open(str(path), "w", encoding="utf-8", newline=newline) as handle:
        handle.write(text)


def host_rid():
    """`win-x64` / `linux-x64` / `osx-arm64` — the RID this runner publishes for."""

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…