Don't use sys.executable when inside virtualenv

This commit is contained in:
Frost Ming
2021-11-09 22:06:23 +08:00
parent 2dfdf2a2bd
commit dfa7107b2e
-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.