This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author paul.moore
Recipients paul.moore, vinay.sajip
Date 2013-10-01.17:58:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1380650313.1.0.884499965527.issue19139@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2013-10-01 17:58:33paul.mooresetrecipients: + paul.moore, vinay.sajip
2013-10-01 17:58:33paul.mooresetmessageid: <1380650313.1.0.884499965527.issue19139@psf.upfronthosting.co.za>
2013-10-01 17:58:33paul.moorelinkissue19139 messages
2013-10-01 17:58:32paul.moorecreate