Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

ci(desktop-gpui): run the glass probe's summary with whichever Python the runner has

Richie McIlroy7cdd62aece1c
diff --git a/scripts/glass-probe/run.sh b/scripts/glass-probe/run.sh
index dabac71e9..efa057d56 100755
--- a/scripts/glass-probe/run.sh
+++ b/scripts/glass-probe/run.sh
@@ -37,7 +37,9 @@ if [ ! -s "$report" ]; then
tail -n 80 "$OUT/app.log" >&2 || true
exit 1
fi
-python3 - "$report" <<'PY'
+# Windows images ship `python`, not `python3`.
+PYTHON=$(command -v python3 || command -v python)
+"$PYTHON" - "$report" <<'PY'
import json, sys
report = json.load(open(sys.argv[1]))
print(f"scale {report.get('scale')} passed {report['passed']}")