Skip to content

Commit

Permalink
Fix a bug that Pyhton from register can not be detected
Browse files Browse the repository at this point in the history
  • Loading branch information
frostming committed Apr 1, 2022
1 parent 45ee493 commit ac07962
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ exclude: >
\.venv|
build|
dist|
src/pythonfinder/_vendor/.*\.py
src/findpython/_vendor/.*\.py
)$
repos:
Expand All @@ -24,11 +24,6 @@ repos:
additional_dependencies:
- flake8-bugbear

- repo: https://github.com/asottile/seed-isort-config
rev: v2.2.0
hooks:
- id: seed-isort-config

- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.10.1
hooks:
Expand Down
2 changes: 1 addition & 1 deletion src/findpython/providers/pep514.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def find_pythons(self) -> Iterable[PythonVersion]:
if install_path is None:
continue
try:
path = Path(install_path.value)
path = Path(install_path.executable_path)
except AttributeError:
continue
if path.exists():
Expand Down

0 comments on commit ac07962

Please sign in to comment.