[issue38901] Add a CLI flag to venv to use the pwd basename as the prompt

Brett Cannon report at bugs.python.org
Sat Nov 23 17:28:34 EST 2019


New submission from Brett Cannon <brett at python.org>:

I did a Twitter poll to see if there was consistent naming of the directory people created a virtual environment into when done locally to code (the answer is no). But a common theme was people not liking that the prompt defaults to the name of the directory that the virtual environment is in and seem to prefer for it to be `os.path.basename(os.getcwd())`.

Maybe it makes sense to add a `--basename-prompt` flag to set the prompt to the current working directory's basename?

----------
components: Library (Lib)
messages: 357385
nosy: brett.cannon, vinay.sajip
priority: low
severity: normal
status: open
title: Add a CLI flag to venv to use the pwd basename as the prompt
type: enhancement

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38901>
_______________________________________


More information about the Python-bugs-list mailing list