2016-01-11 22:22:30 +01:00
|
|
|
#!/usr/bin/env node
|
|
|
|
var fs = require('fs');
|
|
|
|
|
2017-08-31 12:25:44 +02:00
|
|
|
if (!fs.existsSync('/usr/local/lib/python2.7/dist-packages/neopixel/')) {
|
2016-01-11 22:22:30 +01:00
|
|
|
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")
|
|
|
|
}
|