Update to check for Python 3 verison of lib (#1105)

This commit is contained in:
Ben Hardill
2025-09-08 21:40:15 +01:00
committed by GitHub
parent a76f435355
commit 8a38c3d5f6

View File

@@ -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;
} }