terminal: Fix python venv path when spawning tasks on windows (#35909)

I haven't found any issues related to this, but it seems like currently
the wrong directory is added to the path when spawning tasks on windows
with a python virtual environment. I also deduplicated the logic at a
few places. The same constant exists in the languages crate, but we
don't want to pull an additional dependency just for this.

-1 papercut

Release Notes:

- Fix python venv path when spawning tasks on windows
e7b7c206a0tidely committed on 8/18/2025, 10:03:16 PM· committed by GitHubparentbb640c6
1 file changedLine totals unavailable