6481aa3e64
We were checking whether a path was an executable in a virtual environment or the base directory of a virtual environment in multiple places in the codebase. This PR consolidates this logic into one place. Closes #13947.
uv-virtualenv
uv-virtualenv is a rust library to create Python virtual environments. It also has a CLI.