mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
Update sensehat.js (#933)
check for sensehat python lib in 2.7 and 3 folders
This commit is contained in:
parent
c9f57afe22
commit
e7c0459a32
@ -7,7 +7,7 @@ module.exports = function(RED) {
|
||||
|
||||
var hatCommand = __dirname+'/sensehat';
|
||||
|
||||
if (!fs.existsSync('/usr/lib/python2.7/dist-packages/sense_hat')) {
|
||||
if (!fs.existsSync('/usr/lib/python2.7/dist-packages/sense_hat') && !fs.existsSync('/usr/lib/python3/dist-packages/sense_hat')) {
|
||||
throw "Error: Can't find Sense HAT python libraries. Run sudo apt-get install sense-hat";
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user