scottbez1 / splitflap

DIY split-flap display
https://scottbez1.github.io/splitflap
Other
3.09k stars 256 forks source link

Add friendly error message if git isn't present in generate_acceleration.py #151

Closed scottbez1 closed 3 years ago

scottbez1 commented 3 years ago

Similar to #146 generate_acceleration.py has a git dependency that can cause confusion if you didn't use git to check out the code.

In some ways it's questionable that git is even necessary here (it's just used to determine a repo-root-relative path), but it is useful as a git canary -- generate_acceleration.py is likely one of the most common code modifications, so it's the perfect place to make sure users have a git repo so they can track those changes (or preserve them when updating to a newer release).