# Sourced by architectures/*/*.sh. Moves to the repo root and sets the folder variables # (same defaults and environment variables as common/paths.py). set -euo pipefail cd "$(dirname "${BASH_SOURCE[0]}")/.." W=${OCR_WORK_DIR:-data} MODELS=${OCR_MODELS_DIR:-$W/models} UPSTREAM=${OCR_UPSTREAM_DIR:-$W/upstream} PREPARED=${OCR_PREPARED_DIR:-$W/prepared} RUNS=${OCR_RUNS_DIR:-$W/runs} PY=${PYTHON:-python}