Skip to content

Commit

Permalink
Merge pull request #4853 from pypa:bugfix/virtualenv_python
Browse files Browse the repository at this point in the history
Don't use sys.executable when inside a venv
  • Loading branch information
frostming committed Nov 9, 2021
2 parents 2dfdf2a + 6d207c1 commit 76d6fcc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions news/4852.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Don't use ``sys.executable`` when inside an activated venv.
1 change: 0 additions & 1 deletion pipenv/environments.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,6 @@ def initialize(self):
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.
Expand Down

0 comments on commit 76d6fcc

Please sign in to comment.