# Add double quote wrap in activate_python_virtual_environment \(\#7787\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 54f82eb16693e42f223dd4fe01d5a2bddb181130

Requested commit: 54f82eb16693e42f223dd4fe01d5a2bddb181130

Commit: 54f82eb16693e42f223dd4fe01d5a2bddb181130

Tree: c39fb7f56eec92bb413ba7f2b0054b812eb5fd38

Author: Leon

Committer: GitHub

## Message

```
Add double quote wrap in activate_python_virtual_environment (#7787)

Added double quote wrap in activate_python_virtual_environment to handle
spaces in path.
Would fail to find venv activate script when spaces exist.


Release Notes:

- Fixed venv_detection activation not finding directory if space is in
the path

![image](https://github.com/zed-industries/zed/assets/52263845/9bf95b92-c6d4-4e2c-9158-d91a41c10216)


- With changes

![image](https://github.com/zed-industries/zed/assets/52263845/93602ae7-d991-494b-89c3-5afcce556888)
```

## Parents

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

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