MINGW-packages/mingw-w64-python/0068-set-venv-activate-path-unix.patch
2022-06-10 17:54:24 +02:00

30 lines
840 B
Diff

From 52f53e9c8348cbe60d20c718ecb8a4d4ce37c88a Mon Sep 17 00:00:00 2001
From: Dan Yeaw <dan@yeaw.me>
Date: Thu, 17 Jun 2021 18:52:25 +0530
Subject: [PATCH 068/N] set venv activate path unix
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Co-authored-by: Алексей <alexey.pawlow@gmail.com>
---
Lib/venv/scripts/common/activate | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Lib/venv/scripts/common/activate b/Lib/venv/scripts/common/activate
index 6fbc2b8..9c3d58d 100644
--- a/Lib/venv/scripts/common/activate
+++ b/Lib/venv/scripts/common/activate
@@ -38,7 +38,7 @@ deactivate () {
# unset irrelevant variables
deactivate nondestructive
-VIRTUAL_ENV="__VENV_DIR__"
+VIRTUAL_ENV=$(cygpath "__VENV_DIR__")
export VIRTUAL_ENV
_OLD_VIRTUAL_PATH="$PATH"
--
2.36.1