A replacement for shutil.which.
Things we do that shutil.which does not:
Support specifying env Take into account ‘%systemroot%’ possible presence in path (windows) Take into account symlinks to executables (windows)
Support specifying env
Take into account ‘%systemroot%’ possible presence in path (windows)
Take into account symlinks to executables (windows)