Merge pull request #4853 from pypa:bugfix/virtualenv_python

Don't use sys.executable when inside a venv
This commit is contained in:
Frost Ming
2021-11-09 22:58:30 +08:00
committed by GitHub
2 changed files with 1 additions and 1 deletions
+1
View File
@@ -0,0 +1 @@
Don't use ``sys.executable`` when inside an activated venv.
-1
View File
@@ -357,7 +357,6 @@ class Setting:
self.PIPENV_VIRTUALENV = None
if "PIPENV_ACTIVE" not in os.environ and not self.PIPENV_IGNORE_VIRTUALENVS:
self.PIPENV_VIRTUALENV = os.environ.get("VIRTUAL_ENV")
self.PIPENV_USE_SYSTEM = bool(self.PIPENV_VIRTUALENV)
# Internal, tells Pipenv to skip case-checking (slow internet connections).
# This is currently always set to True for performance reasons.