add python3.9 check to neopixel install

This commit is contained in:
Dave Conway-Jones
2022-02-24 17:15:43 +00:00
parent 1a7077c938
commit bc73218905
2 changed files with 5 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
#!/usr/bin/env node
var fs = require('fs');
if (!fs.existsSync('/usr/local/lib/python2.7/dist-packages/unicornhat.py')) {
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");
console.warn("WARNING : Please install using the following command");
console.warn("WARNING : Note: this uses root...");