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

Brett Cannon report at bugs.python.org
Sun Dec 8 17:55:26 EST 2019


Brett Cannon <brett at python.org> added the comment:

If it were `.` would we then always check if the prompt was a folder and then use the folder's name in that case? Or would it only apply to `.`?

As for `__curdir__`, it could work, but I don't know how easy would that be to remember or explain to new users compared to `.`?

My vote is to support `.` and make the rule that if you specify a folder it will use the basename automatically.

----------

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


More information about the Python-bugs-list mailing list