From 31b3d7484c261b29f36289ea40d4e783aa9192a2 Mon Sep 17 00:00:00 2001 From: LuNoX Date: Sun, 7 Jun 2026 15:11:26 +0200 Subject: [PATCH 1/2] Pass VIRTUAL_ENV through cygpath inside fish on Windows --- Lib/venv/scripts/common/activate.fish | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Lib/venv/scripts/common/activate.fish b/Lib/venv/scripts/common/activate.fish index 284a7469c99b576..e8225f6db5b5657 100644 --- a/Lib/venv/scripts/common/activate.fish +++ b/Lib/venv/scripts/common/activate.fish @@ -34,6 +34,9 @@ end deactivate nondestructive set -gx VIRTUAL_ENV __VENV_DIR__ +if string match -qr 'CYGWIN|MSYS|MINGW' (uname) + set -gx VIRTUAL_ENV (cygpath -u $VIRTUAL_ENV) +end set -gx _OLD_VIRTUAL_PATH $PATH set -gx PATH "$VIRTUAL_ENV/"__VENV_BIN_NAME__ $PATH From 06946643b311d58d3e2cda9a4fa41a8deb06322a Mon Sep 17 00:00:00 2001 From: "blurb-it[bot]" <43283697+blurb-it[bot]@users.noreply.github.com> Date: Sun, 7 Jun 2026 13:47:06 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=93=9C=F0=9F=A4=96=20Added=20by=20blu?= =?UTF-8?q?rb=5Fit.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../next/Library/2026-06-07-13-47-05.gh-issue-151042.NMdzF2.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 Misc/NEWS.d/next/Library/2026-06-07-13-47-05.gh-issue-151042.NMdzF2.rst diff --git a/Misc/NEWS.d/next/Library/2026-06-07-13-47-05.gh-issue-151042.NMdzF2.rst b/Misc/NEWS.d/next/Library/2026-06-07-13-47-05.gh-issue-151042.NMdzF2.rst new file mode 100644 index 000000000000000..a24a15c0cc267f5 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2026-06-07-13-47-05.gh-issue-151042.NMdzF2.rst @@ -0,0 +1 @@ +Fixed venv exporting mixed path styles to PATH on Windows inside fish (via Cygwin, MinGW or MSYS2)