sketch2pose / scripts /prepare.sh
kbrodt's picture
Update scripts/prepare.sh
661f9fd verified
raw
history blame contribute delete
293 Bytes
#!/usr/bin/env sh
# set -euo pipefail
v=$(python -c 'import sys; v = sys.version_info; print(f"{v.major}.{v.minor}")')
for p in patches/*.diff; do
patch -p0 -d"/usr/local/lib/python$(python -V | cut -d ' ' -f 2 | cut -d'.' -f 1-2)" < <(sed -e 's/venv\/lib\/python3.10\///' "${p}")
done