]> granicus.if.org Git - python/commitdiff
Closes #15361: Corrected venv prompt in PowerShell activation script.
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Sun, 15 Jul 2012 20:58:13 +0000 (21:58 +0100)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>
Sun, 15 Jul 2012 20:58:13 +0000 (21:58 +0100)
Lib/venv/scripts/nt/Activate.ps1

index 967ba5c64215bdc006cf97c62e915d3572184ba5..1c5ef98726a5a9750bd8a7969ed64cd4aa214041 100644 (file)
@@ -19,7 +19,7 @@ if (Test-Path env:_OLD_VIRTUAL_PATH) {
 # Set the prompt to include the env name\r
 copy-item function:prompt function:_OLD_VIRTUAL_PROMPT\r
 function prompt {\r
-    Write-Host -NoNewline -ForegroundColor Green [__VENV_NAME__]\r
+    Write-Host -NoNewline -ForegroundColor Green '[__VENV_NAME__]'\r
     _OLD_VIRTUAL_PROMPT\r
 }\r
 \r