()
| 102 | |
| 103 | |
| 104 | def main() -> None: |
| 105 | try: |
| 106 | binary = binary_path() |
| 107 | except RuntimeError as exc: |
| 108 | sys.exit(str(exc)) |
| 109 | # Installing the standalone package is not consent to usage stats, so they |
| 110 | # are opt-in here: SE_AVOID_STATS=false (or se-config.toml) turns them on. |
| 111 | env = {**os.environ} |
| 112 | if not env.get("SE_AVOID_STATS"): |
| 113 | env["SE_AVOID_STATS"] = "true" |
| 114 | sys.exit(subprocess.run([binary, *sys.argv[1:]], env=env).returncode) |