Skip to content

Commit afb462e

Browse files
committed
Pass VIRTUAL_ENV through cygpath inside fish on Windows
1 parent f2cab7b commit afb462e

1 file changed

Lines changed: 3 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

0 commit comments

Comments
 (0)