mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-12-26 23:16:47 +01:00
Update to check for Python 3 verison of lib (#1105)
This commit is contained in:
@@ -15,7 +15,7 @@ module.exports = function(RED) {
|
|||||||
RED.log.warn("ledborg : "+RED._("node-red:rpi-gpio.errors.ignorenode"));
|
RED.log.warn("ledborg : "+RED._("node-red:rpi-gpio.errors.ignorenode"));
|
||||||
allOK = false;
|
allOK = false;
|
||||||
}
|
}
|
||||||
else if (!fs.existsSync("/usr/share/doc/python-rpi.gpio")) {
|
else if (!fs.existsSync("/usr/share/doc/python-rpi.gpio") && !fs.existsSync("/usr/share/doc/python3-rpi.gpio")) {
|
||||||
RED.log.warn("ledborg : "+RED._("node-red:rpi-gpio.errors.libnotfound"));
|
RED.log.warn("ledborg : "+RED._("node-red:rpi-gpio.errors.libnotfound"));
|
||||||
allOK = false;
|
allOK = false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user