()
| 7 | |
| 8 | |
| 9 | def _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 | |
| 26 | if __name__ == "__main__": |
no test coverage detected
searching dependent graphs…