Commit 7d2e080
Fix Tool exec failing on Windows paths with parentheses
When the appose base envs dir contains parentheses (e.g. Fiji(1)/envs),
cmd.exe /c misinterprets the parentheses as shell metacharacters, causing
pixi.exe invocation to fail and is_installed() to return False.
Fix by invoking absolute-path executables directly via subprocess instead
of wrapping them in cmd.exe /c -- native .exe files don't need shell
wrapping, and bypassing cmd.exe avoids all metacharacter issues.
Also improve the "not installed" error message to distinguish between
"executable not found" and "executable exists but failed to run", and
include the expected path in both cases.
As per apposed/appose-java@bc86914
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 7212b70 commit 7d2e080
1 file changed
+21
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
171 | 181 | | |
172 | 182 | | |
173 | 183 | | |
| |||
278 | 288 | | |
279 | 289 | | |
280 | 290 | | |
281 | | - | |
282 | | - | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
283 | 301 | | |
284 | 302 | | |
285 | 303 | | |
| |||
0 commit comments