From: schwarzichet <15522755+schwarzichet@users.noreply.github.com> Date: Wed, 5 Feb 2020 08:16:58 +0000 (+0800) Subject: bpo-39505: delete the redundant '/' in $env:VIRTUAL_ENV (GH-18290) X-Git-Tag: v3.9.0a4~134 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=787b6d548c250f36df6d3f3179f60d754c8aa5e3;p=thirdparty%2FPython%2Fcpython.git bpo-39505: delete the redundant '/' in $env:VIRTUAL_ENV (GH-18290) --- diff --git a/Lib/venv/scripts/common/Activate.ps1 b/Lib/venv/scripts/common/Activate.ps1 index 699c84097f1a..98cb1b85d11c 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" }