diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2020-01-14 20:49:30 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-14 20:49:30 (GMT) |
commit | 7d6378051feeadf45b4ce45b4b406b65df255648 (patch) | |
tree | 1046f35a3335e2ad083d1d5bdcc277035a2ddc23 /Misc | |
parent | 4b0d91aab4cfba30a2a9728e9eaea15dbc0ba9bd (diff) | |
download | cpython-7d6378051feeadf45b4ce45b4b406b65df255648.zip cpython-7d6378051feeadf45b4ce45b4b406b65df255648.tar.gz cpython-7d6378051feeadf45b4ce45b4b406b65df255648.tar.bz2 |
bpo-38901: Allow setting a venv's prompt to the basename of the current directory. (GH-17946)
When a prompt value of '.' is specified, os.path.basename(os.getcwd()) is used to
configure the prompt for the created venv.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2020-01-10-22-30-48.bpo-38901.OdVIIb.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2020-01-10-22-30-48.bpo-38901.OdVIIb.rst b/Misc/NEWS.d/next/Library/2020-01-10-22-30-48.bpo-38901.OdVIIb.rst new file mode 100644 index 0000000..304d532 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2020-01-10-22-30-48.bpo-38901.OdVIIb.rst @@ -0,0 +1,3 @@ +When you specify prompt='.' or equivalently python -m venv --prompt . ... +the basename of the current directory is used to set the created venv's +prompt when it's activated. |