Skip to content

Commit 67e5f7c

Browse files
otherjakeoz123
authored andcommitted
Check environment variable PIPENV_CUSTOM_VENV_NAME
Resolves #1226
1 parent 23f4cf3 commit 67e5f7c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pipenv/project.py

+3
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,9 @@ def get_name(name, location):
365365

366366
@property
367367
def virtualenv_name(self) -> str:
368+
custom_name = os.getenv("PIPENV_CUSTOM_VENV_NAME")
369+
if custom_name:
370+
return custom_name
368371
sanitized, encoded_hash = self._get_virtualenv_hash(self.name)
369372
suffix = ""
370373
if self.s.PIPENV_PYTHON:

0 commit comments

Comments
 (0)