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.

classification
Title: Export __VENV_PROMPT__ as environment variable
Type: enhancement Stage: resolved
Components: Library (Lib) Versions: Python 3.8
process
Status: closed Resolution: duplicate
Dependencies: Superseder: Set a environment variable for venv prompt
View: 35328
Assigned To: Nosy List: lys.nikolaou, xtreak
Priority: normal Keywords:

Created on 2019-05-19 14:18 by lys.nikolaou, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (3)
msg342855 - (view) Author: Lysandros Nikolaou (lys.nikolaou) * (Python committer) Date: 2019-05-19 14:18
For those, who use custom tools for their terminals, prepending __VENV_PROMPT__ to PS1 doesn't really help all that much, because it gets overwritten by those tools. Would it make sense to export __VENV_PROMPT__ as an environment variable upon activation, so that these tools can make use of it, in order to edit PS1 accordingly?
msg342856 - (view) Author: Karthikeyan Singaravelan (xtreak) * (Python committer) Date: 2019-05-19 14:22
Is this same as issue35328?
msg342858 - (view) Author: Lysandros Nikolaou (lys.nikolaou) * (Python committer) Date: 2019-05-19 14:25
It is. Somehow search failed me big time. I'm closing the issue.
History
Date User Action Args
2022-04-11 14:59:15adminsetgithub: 81147
2019-05-19 14:25:41xtreaksetsuperseder: Set a environment variable for venv prompt
2019-05-19 14:25:11lys.nikolaousetresolution: duplicate
2019-05-19 14:25:01lys.nikolaousetstatus: open -> closed

messages: + msg342858
stage: resolved
2019-05-19 14:22:10xtreaksetnosy: + xtreak
messages: + msg342856
2019-05-19 14:18:39lys.nikolaoucreate