Refactor checks into 'pre-flight' suite
cp2004 opened this issue · 0 comments
cp2004 commented
Current checks:
- Python version (3.6+)
- Linux
- OctoPi > 0.16 - is this covered by Py3.6?
- no sudo
- OctoPrint > 1.4.0
- Virtual env is not Py3.6
Checks to add
- Requests dependency (confirm if you don't want to install it
Could probably be refactored into a list of checks, to make the output easier to understand. And put them all at the beginning, so it is obvious if there might be problems.
Requests preinstalled on most systems, but maybe not. Add a check before running the script, that the user should install if it is not already.