add python3.9 check to neopixel install
This commit is contained in:
parent
1a7077c938
commit
bc73218905
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name" : "node-red-node-pi-neopixel",
|
||||
"version" : "1.0.0",
|
||||
"version" : "2.0.0",
|
||||
"description" : "A Node-RED node to output to a neopixel (ws2812) string of LEDS from a Raspberry Pi.",
|
||||
"dependencies" : {
|
||||
},
|
||||
|
@ -16,6 +16,7 @@
|
|||
"neopixel"
|
||||
],
|
||||
"node-red": {
|
||||
"version": ">=2.0.0",
|
||||
"nodes": {
|
||||
"rpi-neopixels": "neopixel.js"
|
||||
}
|
||||
|
@ -27,5 +28,6 @@
|
|||
"name": "Dave Conway-Jones",
|
||||
"email": "ceejay@vnet.ibm.com",
|
||||
"url": "http://nodered.org"
|
||||
}
|
||||
},
|
||||
"engines" : { "node" : ">=12.0.0" }
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env node
|
||||
var fs = require('fs');
|
||||
|
||||
if (!fs.existsSync('/usr/local/lib/python2.7/dist-packages/unicornhat.py')) {
|
||||
if (!fs.existsSync('/usr/local/lib/python2.7/dist-packages/unicornhat.py') && !fs.existsSync('/usr/local/lib/python3.9/dist-packages/unicornhat.py')) {
|
||||
console.warn("WARNING : Can't find required python library");
|
||||
console.warn("WARNING : Please install using the following command");
|
||||
console.warn("WARNING : Note: this uses root...");
|
||||
|
|
Loading…
Reference in New Issue