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

Tools: update WSL2 use in uploader.py #28738

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

magicrub
Copy link
Contributor

I just got a new Windows 11 computer and did a fresh WSL2 install and could not push a binary to USB because "Python/Python" wasn't in the python.exe path. Not sure why that's in there, maybe it's because I installed 3.13 on the Windows side. Anyways, it's a stricter check that is unnecessary, all we care about is if we can call python.exe.

@@ -103,7 +103,7 @@ def wsl2_prereq_checks(self):
except subprocess.CalledProcessError:
#if where.exe can't find the file it returns a non-zero result which throws this exception
where_python = ""
if not where_python or "\Python\Python" not in where_python or "python.exe" not in where_python:
if not where_python or "python.exe" not in where_python:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if not where_python or "python.exe" not in where_python:
if "python.exe" not in where_python:

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

Successfully merging this pull request may close these issues.

2 participants