Skip to content
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

Check for both "py" and "python" commands on Windows #33

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mpgiii
Copy link

@mpgiii mpgiii commented Feb 22, 2024

A few users in the Nintendo Homebrew Discord server have had issues with their Python installation.

If a user is saying they definitely installed Python but the script is still saying they don't have it installed (because "py" is not a recognized command), sometimes it is because for some reason their CLI recognizes "python" but not "py" (They must have checked something weird in their installation).

Instead of figuring out what they did to have a borked Python installation, I've been giving them a replacement mset9.bat file that simply replaces references to py -3 with just python.

This commit updates this script so that it:

  • Checks if "py" is a recognized command
    • If it is, just run "py -3 mset9.py"
  • If "py" was not recognized, checks if "python" is a recognized command.
    • If it is, just run "python mset9.py"
    • If it is not, exit with error message

A few users in the Nintendo Homebrew Discord server have had issues with their Python installation.

If a user is saying they definitely installed Python but the script is still saying they don't have it installed (because "py" is not a recognized command), sometimes it is because for some reason their CLI recognizes "python" but not "py" (They must have checked something weird in their installation).

Instead of figuring out what they did to have a borked Python installation, I've been giving them a replacement mset9.bat file that simply replaces references to py -3 with just python.

This commit updates this script so that it:
- Checks if "py" is a recognized command
  - If it is, just run "py -3 mset9.py"
- If "py" was not recognized, checks if "python" is a recognized command.
  - If it is, just run "python mset9.py"
  - If it is not, exit with error message
@mpgiii
Copy link
Author

mpgiii commented Aug 27, 2024

Rebased.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant