Skip to content

bug: fix gitignore add for more scenarios - #627

Merged
Eleanor Boyd (eleanorjboyd) merged 3 commits into
microsoft:mainfrom
eleanorjboyd:baseball-bat
Jul 25, 2025
Merged

bug: fix gitignore add for more scenarios#627
Eleanor Boyd (eleanorjboyd) merged 3 commits into
microsoft:mainfrom
eleanorjboyd:baseball-bat

Conversation

@eleanorjboyd

Copy link
Copy Markdown
Member

fixes #619

since environmentPath for an environment can be "Path to the python binary or environment folder." need to update code to support if the path is directly to a python binary. If so get the parent, parent of the binary to get the venv folder

@vs-code-engineering

Copy link
Copy Markdown

⚠️ This PR originates from a fork. Due to security restrictions, pipelines from forks are no longer triggered automatically. Learn more.

If the changes appear safe, you can manually trigger the pipeline by commenting /AzurePipelines run.

@eleanorjboyd
Eleanor Boyd (eleanorjboyd) merged commit ec07433 into microsoft:main Jul 25, 2025
6 checks passed
Eleanor Boyd (eleanorjboyd) added a commit to eleanorjboyd/vscode-python-environments that referenced this pull request Jul 27, 2025
fixes microsoft#619

since environmentPath for an environment can be "Path to the python
binary or environment folder." need to update code to support if the
path is directly to a python binary. If so get the parent, parent of the
binary to get the venv folder
NgCuong (NguyenCuong1989) referenced this pull request in NguyenCuong1989/vscode-python-environments Oct 23, 2025
fixes microsoft/vscode-python-environments#619

since environmentPath for an environment can be "Path to the python
binary or environment folder." need to update code to support if the
path is directly to a python binary. If so get the parent, parent of the
binary to get the venv folder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[error] Failed to create .gitignore in ... '/.../.venv/bin/python/.gitignore'

2 participants