Skip to content

Commit 476b649

Browse files
authored
gh-151042: venv: Pass VIRTUAL_ENV through cygpath inside fish on Windows (GH-151043)
1 parent 24828e5 commit 476b649

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

Lib/venv/scripts/common/activate.fish

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ end
3434
deactivate nondestructive
3535

3636
set -gx VIRTUAL_ENV __VENV_DIR__
37+
if string match -qr 'CYGWIN|MSYS|MINGW' (uname)
38+
set -gx VIRTUAL_ENV (cygpath -u $VIRTUAL_ENV)
39+
end
3740

3841
set -gx _OLD_VIRTUAL_PATH $PATH
3942
set -gx PATH "$VIRTUAL_ENV/"__VENV_BIN_NAME__ $PATH
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fixed venv exporting mixed path styles to PATH on Windows inside fish (via Cygwin, MinGW or MSYS2)

0 commit comments

Comments
 (0)