Add wrapper script that runs reset.py using virtualenv

This commit is contained in:
Daniel Lublin 2022-10-25 15:14:45 +02:00
parent 7af0fc6777
commit fdda69745e
No known key found for this signature in database
GPG key ID: 75BD0FEB8D3E7830
3 changed files with 21 additions and 1 deletions

View file

@ -0,0 +1,15 @@
#!/bin/sh
set -eu
cd "${0%/*}"
cd ../../boards/mta1-usb-v1/test
if [ ! -e venv ]; then
python3 -m venv venv
. ./venv/bin/activate
pip3 install -r requirements.txt
else
. ./venv/bin/activate
fi
./reset.py