MCPcopy
hub / github.com/astral-sh/ty / _run

Function _run

python/ty/__main__.py:9–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7
8
9def _run() -> None:
10 ty = find_ty_bin()
11
12 if sys.platform == "win32":
13 import subprocess
14
15 # Avoid emitting a traceback on interrupt
16 try:
17 completed_process = subprocess.run([ty, *sys.argv[1:]])
18 except KeyboardInterrupt:
19 sys.exit(2)
20
21 sys.exit(completed_process.returncode)
22 else:
23 os.execvp(ty, [ty, *sys.argv[1:]])
24
25
26if __name__ == "__main__":

Callers 1

__main__.pyFile · 0.85

Calls 1

find_ty_binFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…