[issue19139] In venv, __VENV_NAME__ is the prompt, not the name

Paul Moore report at bugs.python.org
Tue Oct 1 19:58:33 CEST 2013


New submission from Paul Moore:

The documentation for venv states that __VENV_NAME__ in scripts is replaced by the name of the virtualenv. In fact, it is replaced by context.prompt, which is the prompt, rather than the name.

The various activate scripts are not consistent with this behaviour. Most seem to expect a prompt, but activate.csh does not.

I would prefer __VENV_NAME__ to actually *be* the name, and either have an extra substitution variable __VENV_PROMPT__ or just leave it to the scripts themselves to format the prompt using the name.

I could supply a patch (it's not hard) but would need agreement on the right approach.

----------
assignee: vinay.sajip
components: Library (Lib)
messages: 198795
nosy: pmoore, vinay.sajip
priority: normal
severity: normal
status: open
title: In venv, __VENV_NAME__ is the prompt, not the name
versions: Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19139>
_______________________________________


More information about the Python-bugs-list mailing list