Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Python-3.12 compat and refactor of path determination.
In `stdlib._call()`, we lookup whether the command to call is present on the user's PATH. Two changes are made to this functionality: * Simplify the lookup of PATH now that we have a local variable with all the information we need. * Add compat code to use `shutil.which()` on Python3 (while still using `distutils.spawn.find_executable()` on Python2). As noted in pstodulk's comment, `which()` will be needed when the code runs on Python-3.12.
- Loading branch information