[BUG]: External dependencies not found despite being there #385
2 changed files with 2 additions and 1 deletions
1
docs/changes/newsfragments/385.bugfix
Normal file
1
docs/changes/newsfragments/385.bugfix
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
Use correct return code for ANTs commands while checking presence of external commands by `Synchon Mandal`_
|
||||||
|
|
@ -237,7 +237,7 @@ def _check_ants(commands: Optional[list[str]] = None) -> bool:
|
||||||
shell=True, # is unsafe but kept for resolution via PATH
|
shell=True, # is unsafe but kept for resolution via PATH
|
||||||
check=False,
|
check=False,
|
||||||
)
|
)
|
||||||
command_found = command_process.returncode == 0
|
command_found = command_process.returncode == 1
|
||||||
commands_found_results[command] = (
|
commands_found_results[command] = (
|
||||||
"found" if command_found else "not found"
|
"found" if command_found else "not found"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue