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

Open
wants to merge 2 commits into
base: master
from

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.
@@ -122,7 +122,8 @@ creation according to their needs, the :class:`EnvBuilder` class.

* ``prompt`` -- a String to be used after virtual environment is activated
(defaults to ``None`` which means directory name of the environment would
be used).
be used). If the special string ``"."` is provided, the basename of the

This comment has been minimized.

Copy link
@csabella

csabella Jan 12, 2020

Contributor

Is there an extra or missing backtick on the formatting for "."?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.