Skip to content

Commit 0972d28

Browse files
Use python.exe to launch Microsoft Store install
1 parent a13f5f1 commit 0972d28

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/apToolsConfig.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ export const TOOLS_REGISTRY = {
105105
wsl: ['python.exe']
106106
},
107107
installCommands: {
108-
wsl: { type: 'url', url: 'https://www.python.org/downloads/windows/' },
108+
// Run python.exe, then regardless of its exit code, check python.exe --version every 10s (6 times), if we get a version, exit 0 else exit 1
109+
wsl: { type: 'command', command: 'python.exe; for i in {1..6}; do python.exe --version && exit 0; sleep 10; done; exit 1' },
109110
},
110111
findArgs: {
111112
args: ['--version']

0 commit comments

Comments
 (0)