-
Notifications
You must be signed in to change notification settings - Fork 11
Add extra checks for Python path in startup script #124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report
@@ Coverage Diff @@
## master #124 +/- ##
=======================================
Coverage 80.64% 80.64%
=======================================
Files 86 86
Lines 11631 11631
=======================================
Hits 9380 9380
Misses 2251 2251 Continue to review full report at Codecov.
|
echo "No Python interpreter found on the box" >&2 | ||
exit 51 # Not Supported | ||
echo "Python is required, but no Python interpreter was found on the box" >&2 | ||
exit 52 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the error code mapping for 52? Please leave that as a comment as before in the code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error code mapping for 52 is missing dependency; error code 51 is unsupported OS. Added link with more information in comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor comment ask.
Adds extra checks for Python in case it isn't in the path/environment variables.
Also changes exit code 51 to exit code 52, according to the Extensions Best Practices page. (missing dependency instead of unsupported OS)