mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-01-20 04:59:27 +02:00
fix 36-rpi-gpio.js
This commit is contained in:
parent
4a3e35cef6
commit
5ffa56ff95
@ -15,14 +15,14 @@ module.exports = function(RED) {
|
||||
|
||||
try {
|
||||
fs.statSync("/usr/share/doc/python-rpi.gpio"); // test on Raspbian
|
||||
// /usr/lib/python3.5/dist-packages/RPi/GPIO
|
||||
// /usr/lib/python3.6/dist-packages/RPi/GPIO
|
||||
} catch(err) {
|
||||
try {
|
||||
fs.statSync("/usr/lib/python3.5/site-packages/RPi/GPIO"); // test on Arch
|
||||
fs.statSync("/usr/lib/python3.6/site-packages/RPi/GPIO"); // test on Arch
|
||||
}
|
||||
catch(err) {
|
||||
try {
|
||||
fs.statSync("/usr/lib/python3.5/dist-packages/RPi/GPIO"); // test on Hypriot
|
||||
fs.statSync("/usr/lib/python3.6/dist-packages/RPi/GPIO"); // test on Hypriot
|
||||
}
|
||||
catch(err) {
|
||||
RED.log.warn(RED._("rpi-gpio.errors.libnotfound"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user