mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-01 18:30:56 +00:00
emu: add -r option to restart (and reload sources) when sources are changed
This commit is contained in:
parent
93ad93ff94
commit
5be6a82682
10
emu.sh
10
emu.sh
@ -16,6 +16,16 @@ case "$1" in
|
||||
shift
|
||||
gdb --args ../vendor/micropython/unix/micropython $ARGS $* $MAIN
|
||||
;;
|
||||
"-r")
|
||||
shift
|
||||
while true; do
|
||||
../vendor/micropython/unix/micropython $ARGS $* $MAIN &
|
||||
UPY_PID=$!
|
||||
find -name '*.py' | inotifywait -q -e close_write --fromfile -
|
||||
echo Restarting ...
|
||||
kill $UPY_PID
|
||||
done
|
||||
;;
|
||||
"-p")
|
||||
shift
|
||||
../vendor/micropython/unix/micropython $ARGS $* $MAIN &
|
||||
|
Loading…
Reference in New Issue
Block a user