Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Normalize VIRTUAL_ENV path in activation scripts #1817

Merged
merged 1 commit into from
Feb 21, 2024

Conversation

MichaReiser
Copy link
Member

Summary

Fixes #1763

This PR fixes the issue where the Path to the virtual environment used NT Paths thar are unsupported in CMD on Win 10 (I can't repro on win11) by normalizing the path.

Test Plan

I can't reproduce the mentioned issue locally because it works fine under Win 11 and I don't have access to Win 10.

But I verified that the path in the generated activation.bat isn't an NT Path.

grafik

I verified that I can activate the virtual env in CMD and Powershell by running the activation scripts.

@charliermarsh charliermarsh added bug Something isn't working windows Specific to the Windows platform labels Feb 21, 2024
@MichaReiser MichaReiser enabled auto-merge (squash) February 21, 2024 15:49
@MichaReiser MichaReiser merged commit fac9d84 into main Feb 21, 2024
7 checks passed
@MichaReiser MichaReiser deleted the normalize-venv-path branch February 21, 2024 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working windows Specific to the Windows platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

uv venv creates path starting with \\?\ in activate.bat which doesn't work
2 participants