1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00
node-red-nodes/hardware/neopixel/scripts/checklib.js

14 lines
553 B
JavaScript
Raw Normal View History

2016-01-11 22:22:30 +01:00
#!/usr/bin/env node
var fs = require('fs');
if (!fs.existsSync('/usr/local/lib/python2.7/dist-packages/unicornhat.py') && !fs.existsSync('/usr/local/lib/python3.9/dist-packages/unicornhat.py')) {
console.warn("WARNING : Can't find required python library");
2016-01-11 22:22:30 +01:00
console.warn("WARNING : Please install using the following command");
console.warn("WARNING : Note: this uses root...");
console.warn("WARNING : curl -sS get.pimoroni.com/unicornhat | bash\n");
//process.exit(1);
}
else {
console.log("Python library found OK.\n")
2016-01-11 22:22:30 +01:00
}