Commit afb5961
committed
fix: use shell=True for all Windows Python versions
Windows requires shell=True to properly execute .cmd batch files like npx.cmd
across all Python versions. Previous approach only applied this to Python 3.9,
causing inconsistent behavior and npm cache corruption errors on other versions.
Now using shell=True with properly quoted command string (via shlex.quote) for
all Windows Python versions, and shell=False with list format on Unix systems
for better security.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 5e5b59e commit afb5961
1 file changed
+15
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
64 | 72 | | |
65 | 73 | | |
66 | 74 | | |
67 | 75 | | |
68 | 76 | | |
69 | 77 | | |
70 | 78 | | |
71 | | - | |
| 79 | + | |
72 | 80 | | |
73 | 81 | | |
74 | 82 | | |
| |||
0 commit comments