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

Check environment variable PIPENV_CUSTOM_VENV_NAME #5203

Merged
merged 11 commits into from
Aug 4, 2022
3 changes: 3 additions & 0 deletions pipenv/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,9 @@ def get_name(name, location):

@property
def virtualenv_name(self) -> str:
custom_name = os.getenv("PIPENV_CUSTOM_VENV_NAME")
if custom_name:
return custom_name
sanitized, encoded_hash = self._get_virtualenv_hash(self.name)
suffix = ""
if self.s.PIPENV_PYTHON:
Expand Down