From abbcaae02cb8b2828032943c7569e5173303780f Mon Sep 17 00:00:00 2001 From: Zachary Snow Date: Mon, 4 Apr 2022 12:26:15 -0600 Subject: [PATCH] default to python3 for number gen.py --- test/number/run.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/number/run.sh b/test/number/run.sh index 62ffa78..0c5e0cf 100755 --- a/test/number/run.sh +++ b/test/number/run.sh @@ -1,6 +1,7 @@ #!/bin/bash -python gen.py 4 b 2 01xz > binary.sv -python gen.py 2 o 8 01234567xz > octal.sv -python gen.py 2 d 10 0123456789 > decimal.sv -python gen.py 2 h 16 0123456789abcdefxz > hex.sv +py=$(which python3 || which python) +$py gen.py 4 b 2 01xz > binary.sv +$py gen.py 2 o 8 01234567xz > octal.sv +$py gen.py 2 d 10 0123456789 > decimal.sv +$py gen.py 2 h 16 0123456789abcdefxz > hex.sv source ../lib/runner.sh