mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-08-02 11:46:06 -04:00
Add wrapper script that runs reset.py using virtualenv
This commit is contained in:
parent
7af0fc6777
commit
fdda69745e
3 changed files with 21 additions and 1 deletions
15
hw/application_fpga/tools/reset-tk1
Executable file
15
hw/application_fpga/tools/reset-tk1
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue