mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
fixed check for python2 module while using python3 (#866)
Excellent - thank for that.
This commit is contained in:
@@ -4,4 +4,8 @@ python_cmd='python3'
|
||||
command -v python3 > /dev/null || python_cmd=`python`
|
||||
|
||||
BASEDIR=$(dirname $0)
|
||||
sudo $python_cmd -u $BASEDIR/neopix.py $@
|
||||
if [ "$1" == "check" ];then
|
||||
$python_cmd -c "import rpi_ws281x"
|
||||
else
|
||||
sudo $python_cmd -u $BASEDIR/neopix.py $@
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user