Commit 62f1912
committed
fix(providers): handle python-build-standalone on Windows
The python-build-standalone archives extract with a python/ subdirectory
on all platforms, including Windows. Previously, the code assumed Windows
would use the embeddable package format (files in root), causing the shim
to fail to find the Python executable after installation.
This change removes the Windows-specific case in determineSourceDir() and
lets all platforms use the same logic: check for python/ subdirectory first,
then fall back to the extract root for older embeddable packages.1 parent 359274c commit 62f1912
1 file changed
Lines changed: 4 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
| 94 | + | |
100 | 95 | | |
101 | 96 | | |
102 | 97 | | |
103 | 98 | | |
104 | 99 | | |
105 | 100 | | |
| 101 | + | |
106 | 102 | | |
107 | 103 | | |
108 | 104 | | |
| |||
384 | 380 | | |
385 | 381 | | |
386 | 382 | | |
387 | | - | |
| 383 | + | |
388 | 384 | | |
389 | 385 | | |
390 | | - | |
| 386 | + | |
391 | 387 | | |
392 | 388 | | |
393 | 389 | | |
| |||
0 commit comments