INNER CODE UNIT · Python

run

Nain57/Smart-AutoClicker · scripts/ocr-models/converters/onnx_to_ncnn.py:25

def run(cmd):
    """
    Executes a shell command and captures its output.

    :param cmd: List of command arguments.
    """
    print("\n[CMD]", " ".join(cmd))

    result = subprocess.run(
        cmd,
        stdout=subprocess.PIPE,
        stderr=subprocess.PIPE,
        text=True,
        encoding="utf-8",
        errors="replace"
    )

    print(result.stdout)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…