python: rework how we compute the "command" property (#46850)

Some Windows Python installations may store the Python exe in Scripts/
rather than the base directory. Update `.command` to search in both
locations on Windows. On all systems, the search is now done
recursively from the search root: on Windows, that is the base install
directory, and on other systems it is bin/.
This commit is contained in:
Massimiliano Culpo
2024-10-09 09:08:27 +02:00
committed by GitHub
parent 6d67992191
commit 8e4e3c9060
2 changed files with 12 additions and 10 deletions

View File

@@ -47,6 +47,7 @@
"copy_mode",
"filter_file",
"find",
"find_first",
"find_headers",
"find_all_headers",
"find_libraries",