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

Find the python interpreter for pipenv check --system. #3820

Merged
merged 2 commits into from
Jun 28, 2019
Merged

Conversation

frostming
Copy link
Contributor

@frostming frostming commented Jun 28, 2019

Fixes #3819

The Fix

Iterate over all possible python executables, instead of using which("python", allow_global=True). This is to keep consistent with what which_pip does when system=True.

Pipenv is usually installed as an isolated application. By this method, sys.executable, which is the path of the isolated python interpreter, won't be preferred in the first place.

@frostming frostming changed the title Iterate all possible python paths Find the python interpreter for pipenv check --system. Jun 28, 2019
@frostming frostming merged commit 4c00352 into master Jun 28, 2019
@frostming frostming deleted the bugfix/3818 branch June 28, 2019 07:53
@thehesiod
Copy link

dang that was quick ! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pipenv check --system finds wrong python ver yielding JSONDecodeError
2 participants