Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-38901: Allow setting a venv's prompt to the basename of the current directory. #17946

Merged
merged 3 commits into from Jan 14, 2020

Conversation

@vsajip
Copy link
Member

vsajip commented Jan 10, 2020

When a prompt value of '.' is specified, os.path.basename(os.getcwd()) is used to configure the prompt for the created venv.

https://bugs.python.org/issue38901

vsajip added 2 commits Jan 10, 2020
…nt directory.

When a prompt value of '.' is specified, os.path.basename(os.getcwd()) is used to
configure the prompt for the created venv.
Doc/library/venv.rst Outdated Show resolved Hide resolved
Copy link
Contributor

csabella left a comment

LGTM

@vsajip

This comment has been minimized.

Copy link
Member Author

vsajip commented Jan 14, 2020

@brettcannon - as the original reporter - any comments before I merge this?

@brettcannon

This comment has been minimized.

Copy link
Member

brettcannon commented Jan 14, 2020

@vsajip my only comment is 🎉😁

@vsajip vsajip merged commit 7d63780 into python:master Jan 14, 2020
9 checks passed
9 checks passed
Docs
Details
Windows (x86)
Details
Windows (x64)
Details
macOS
Details
Ubuntu
Details
Azure Pipelines PR #20200112.6 succeeded
Details
bedevere/issue-number Issue number 38901 found
Details
bedevere/news News entry found in Misc/NEWS.d
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@vsajip vsajip deleted the vsajip:fix-38901 branch Jan 14, 2020
petdance added a commit to petdance/cpython that referenced this pull request Jan 17, 2020
…nt directory. (pythonGH-17946)

When a prompt value of '.' is specified, os.path.basename(os.getcwd()) is used to
configure the prompt for the created venv.
petdance added a commit to petdance/cpython that referenced this pull request Jan 17, 2020
…nt directory. (pythonGH-17946)

When a prompt value of '.' is specified, os.path.basename(os.getcwd()) is used to
configure the prompt for the created venv.
petdance added a commit to petdance/cpython that referenced this pull request Jan 17, 2020
…nt directory. (pythonGH-17946)

When a prompt value of '.' is specified, os.path.basename(os.getcwd()) is used to
configure the prompt for the created venv.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants
You can’t perform that action at this time.