fixup gpio nodes to try to be 100% python 2/3 friendly

This commit is contained in:
Dave Conway-Jones
2021-06-18 08:28:54 +01:00
parent 14a8b3293b
commit 7c4b2593ba
6 changed files with 12 additions and 32 deletions

8
hardware/PiGpio/testgpio Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
python_cmd='python3'
# Fallback to Python 2, if Python 3 is not available
command -v python3 > /dev/null || python_cmd=`python`
BASEDIR=$(dirname $0)
$python_cmd -u $BASEDIR/testgpio.py $@