# terminal: Fix python venv path when spawning tasks on windows \(\#35909\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/e7b7c206a0233c19c982cf0ef95c87d98a2fd8a9)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: e7b7c206a0233c19c982cf0ef95c87d98a2fd8a9

Requested commit: e7b7c206a0233c19c982cf0ef95c87d98a2fd8a9

Commit: e7b7c206a0233c19c982cf0ef95c87d98a2fd8a9

Tree: f020e1ab5aeb6911aac5fbc5a7d7c4e6e9375dfd

Author: tidely

Committer: GitHub

## Message

```
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
```

## Parents

- [bb640c6a1c8b77031b8aabf1d5100945bf1d00ff](https://git.cafe/gitcafe/zed/commit/bb640c6a1c8b77031b8aabf1d5100945bf1d00ff?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/e7b7c206a0233c19c982cf0ef95c87d98a2fd8a9?format=markdown)
