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 <rep...@bugs.python.org>
<http://bugs.python.org/issue19139>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to