From 8f7f93ab2851532235b8c1f2bc882ad9c42d5b92 Mon Sep 17 00:00:00 2001 From: Tom Pittenger Date: Fri, 22 Nov 2024 09:52:44 -0800 Subject: [PATCH] Tools: update WSL2 use in uploader.py --- Tools/ardupilotwaf/chibios.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/ardupilotwaf/chibios.py b/Tools/ardupilotwaf/chibios.py index 785bce15bcee5..6c998c14f204d 100644 --- a/Tools/ardupilotwaf/chibios.py +++ b/Tools/ardupilotwaf/chibios.py @@ -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 "python.exe" not in where_python: print(self.get_full_wsl2_error_msg("Windows python.exe not found")) return False return True