# Source this from your shell before running the launchers: # # source tools/setup_env.sh # # The launchers (`tools/run_webots.sh`, `tools/webots_sweep*.sh`, # `tools/calibrate_mecanum.sh`) and the Webots controllers (via # `controllers/*/runtime.ini`) all read $HERDING_PYTHON to decide # which Python interpreter to use. The default below points at the # project author's conda env — edit this file or override the var in # your shell to match your own setup. : "${HERDING_PYTHON:=/home/jalf/miniconda3/envs/tir/bin/python3}" export HERDING_PYTHON # Prepend the Python's bin/ to PATH so subprocesses pick up the same # interpreter (used by Webots when it doesn't read runtime.ini, and # by any Python tooling launched by the bash scripts). export PATH="$(dirname "$HERDING_PYTHON"):$PATH" if [[ ! -x "$HERDING_PYTHON" ]]; then echo "[setup_env] WARNING: HERDING_PYTHON=$HERDING_PYTHON is not executable." >&2 echo "[setup_env] Edit tools/setup_env.sh or 'export HERDING_PYTHON=...' yourself." >&2 fi