Skip to content

Commit 68ba586

Browse files
author
Dave Conway-Jones
committed
add check for python3 lib
to close #865
1 parent 1293a86 commit 68ba586

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

hardware/PiLcd/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name" : "node-red-node-pilcd",
3-
"version" : "0.2.1",
3+
"version" : "0.3.0",
44
"description" : "A Node-RED node for Raspberry Pi to write to HD44780 style LCD panels.",
55
"dependencies" : {
66
},

hardware/PiLcd/pilcd.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module.exports = function(RED) {
1414
RED.log.warn("rpi-lcd : "+RED._("pilcd.errors.ignorenode"));
1515
allOK = false;
1616
}
17-
else if (!fs.existsSync("/usr/share/doc/python-rpi.gpio")) {
17+
else if (!fs.existsSync("/usr/share/doc/python-rpi.gpio") && !fs.existsSync("/usr/share/doc/python3-rpi.gpio")) {
1818
RED.log.warn("rpi-lcd : "+RED._("pilcd.errors.libnotfound"));
1919
allOK = false;
2020
}

hardware/PiSrf/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name" : "node-red-node-pisrf",
3-
"version" : "0.1.7",
3+
"version" : "0.2.0",
44
"description" : "A Node-RED node for a Raspberry Pi to use a SRF04 or SRF05 range finder",
55
"dependencies" : {
66
},

hardware/PiSrf/pisrf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module.exports = function(RED) {
1414
RED.log.warn("rpi-srf : "+RED._("node-red:rpi-gpio.errors.ignorenode"));
1515
allOK = false;
1616
}
17-
else if (!fs.existsSync("/usr/share/doc/python-rpi.gpio")) {
17+
else if (!fs.existsSync("/usr/share/doc/python-rpi.gpio") && !fs.existsSync("/usr/share/doc/python3-rpi.gpio")) {
1818
RED.log.warn("rpi-srf : "+RED._("node-red:rpi-gpio.errors.libnotfound"));
1919
allOK = false;
2020
}

hardware/unicorn/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name" : "node-red-node-pi-unicorn-hat",
3-
"version" : "0.0.23",
3+
"version" : "0.1.0",
44
"description" : "A Node-RED node to output to a Raspberry Pi Unicorn HAT from Pimorini.",
55
"dependencies" : {
66
"pngjs": "2.2.*"

hardware/unicorn/unicorn.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module.exports = function(RED) {
1515
RED.log.warn("rpi-unicorn : "+RED._("node-red:rpi-gpio.errors.ignorenode"));
1616
allOK = false;
1717
}
18-
else if (!fs.existsSync("/usr/share/doc/python-rpi.gpio")) {
18+
else if (!fs.existsSync("/usr/share/doc/python-rpi.gpio") && !fs.existsSync("/usr/share/doc/python3-rpi.gpio")) {
1919
RED.log.warn("rpi-unicorn : "+RED._("node-red:rpi-gpio.errors.libnotfound"));
2020
allOK = false;
2121
}

0 commit comments

Comments
 (0)