Use built-in 'which'
Instead of calling which as subprocess, use which() from shutil.
This removes the dependency on the which command.
Instead of calling which as subprocess, use which() from shutil.
This removes the dependency on the which command.