summaryrefslogtreecommitdiffstats
path: root/Lib/venv/scripts/posix/activate
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2013-10-02 10:36:16 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2013-10-02 10:36:16 (GMT)
commitdff9e2535f5bf73f1491edc45928eef51a701074 (patch)
treea8345bf9e94fb6095a0eb41da069232184009fe1 /Lib/venv/scripts/posix/activate
parent7c411a40413d9525aeb6114d71be3e012dbf81f5 (diff)
downloadcpython-dff9e2535f5bf73f1491edc45928eef51a701074.zip
cpython-dff9e2535f5bf73f1491edc45928eef51a701074.tar.gz
cpython-dff9e2535f5bf73f1491edc45928eef51a701074.tar.bz2
Closes #19139: Changed usage of __VENV_NAME__ and added __VENV_PROMPT__.
Diffstat (limited to 'Lib/venv/scripts/posix/activate')
-rw-r--r--Lib/venv/scripts/posix/activate4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/venv/scripts/posix/activate b/Lib/venv/scripts/posix/activate
index c241450..7bbffd9 100644
--- a/Lib/venv/scripts/posix/activate
+++ b/Lib/venv/scripts/posix/activate
@@ -54,8 +54,8 @@ fi
if [ -z "$VIRTUAL_ENV_DISABLE_PROMPT" ] ; then
_OLD_VIRTUAL_PS1="$PS1"
- if [ "x__VENV_NAME__" != x ] ; then
- PS1="__VENV_NAME__$PS1"
+ if [ "x__VENV_PROMPT__" != x ] ; then
+ PS1="__VENV_PROMPT__$PS1"
else
if [ "`basename \"$VIRTUAL_ENV\"`" = "__" ] ; then
# special case for Aspen magic directories