mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
14 lines
489 B
JavaScript
Executable File
14 lines
489 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
var fs = require('fs');
|
|
|
|
if (!fs.existsSync('/usr/local/lib/python2.7/dist-packages/neopixel.py')) {
|
|
console.warn("WARNING : Can't find neopixel.py python library");
|
|
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("Neopixel Python library found OK.\n")
|
|
}
|