[Python-checkins] bpo-39505: delete the redundant '/' in $env:VIRTUAL_ENV (GH-18290) (GH-18359)

Miss Islington (bot) webhook-mailer at python.org
Wed Feb 5 03:39:41 EST 2020


https://github.com/python/cpython/commit/927d3aab1c7874b5705fcc8269ea608315434e66
commit: 927d3aab1c7874b5705fcc8269ea608315434e66
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2020-02-05T08:39:36Z
summary:

bpo-39505: delete the redundant '/' in $env:VIRTUAL_ENV (GH-18290) (GH-18359)

(cherry picked from commit 787b6d548c250f36df6d3f3179f60d754c8aa5e3)

Co-authored-by: schwarzichet <15522755+schwarzichet at users.noreply.github.com>

files:
M Lib/venv/scripts/common/Activate.ps1

diff --git a/Lib/venv/scripts/common/Activate.ps1 b/Lib/venv/scripts/common/Activate.ps1
index 699c84097f1ac..98cb1b85d11c6 100644
--- a/Lib/venv/scripts/common/Activate.ps1
+++ b/Lib/venv/scripts/common/Activate.ps1
@@ -168,7 +168,6 @@ if ($VenvDir) {
 } else {
     Write-Verbose "VenvDir not given as a parameter, using parent directory name as VenvDir."
     $VenvDir = $VenvExecDir.Parent.FullName.TrimEnd("\\/")
-    $VenvDir = $VenvDir.Insert($VenvDir.Length, "/")
     Write-Verbose "VenvDir=$VenvDir"
 }
 



More information about the Python-checkins mailing list