2016-01-11 22:22:30 +01:00
|
|
|
#!/usr/bin/env node
|
|
|
|
var fs = require('fs');
|
|
|
|
|
2022-02-24 18:15:43 +01:00
|
|
|
if (!fs.existsSync('/usr/local/lib/python2.7/dist-packages/unicornhat.py') && !fs.existsSync('/usr/local/lib/python3.9/dist-packages/unicornhat.py')) {
|
2017-09-01 16:22:35 +02:00
|
|
|
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 {
|
2017-09-01 16:22:35 +02:00
|
|
|
console.log("Python library found OK.\n")
|
2016-01-11 22:22:30 +01:00
|
|
|
}
|