diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2013-10-02 10:36:16 (GMT) |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2013-10-02 10:36:16 (GMT) |
commit | dff9e2535f5bf73f1491edc45928eef51a701074 (patch) | |
tree | a8345bf9e94fb6095a0eb41da069232184009fe1 /Lib/venv/__init__.py | |
parent | 7c411a40413d9525aeb6114d71be3e012dbf81f5 (diff) | |
download | cpython-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/__init__.py')
-rw-r--r-- | Lib/venv/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/venv/__init__.py b/Lib/venv/__init__.py index 1688bc4..f184328 100644 --- a/Lib/venv/__init__.py +++ b/Lib/venv/__init__.py @@ -261,7 +261,8 @@ class EnvBuilder: being processed. """ text = text.replace('__VENV_DIR__', context.env_dir) - text = text.replace('__VENV_NAME__', context.prompt) + text = text.replace('__VENV_NAME__', context.env_name) + text = text.replace('__VENV_PROMPT__', context.prompt) text = text.replace('__VENV_BIN_NAME__', context.bin_name) text = text.replace('__VENV_PYTHON__', context.env_exe) return text |