Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use shutil when looking for executables on the host system (#1146)
## Description The implementation of the `which` function only checks for the executable flag on paths, which means it can return a directory (at least on POSIX), causing weird permission errors down the line. It should instead defer to `shutil.which`; that function contains a platform-agnostic implementation that should hopefully match the behavior of the GNU `which` utility. Co-authored-by: Grazfather <[email protected]> Co-authored-by: crazy hugsy <[email protected]>
- Loading branch information