#!/usr/bin/env bash # Python with numpy and OpenCV for the lab tools: gaze/tracker/build/venv (gaze/tracker/build.sh # makes it in the dev container on the Frame; frame-job's SETUP makes it on the PC). On the # Frame's host it runs in the dev container, where it was made. # Usage: lab/py lab/TOOL [args] (from gaze/tracker) here=$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd) py=$here/build/venv/bin/python if grep -qx 'ID=steamos' /etc/os-release 2>/dev/null; then exec "$HOME/.local/bin/distrobox" enter dev -- "$py" "$@" fi [ -x "$py" ] || { echo "no $py: run gaze/tracker/build.sh (or a frame-job job, whose setup makes it)" >&2; exit 1; } exec "$py" "$@"