We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2bae30 commit 4262487Copy full SHA for 4262487
pre_commit/languages/python.py
@@ -86,8 +86,9 @@ def get_default_version():
86
def norm_version(version):
87
if os.name == 'nt': # pragma: no cover (windows)
88
# Try looking up by name
89
- if find_executable(version) and find_executable(version) != version:
90
- return version
+ version_exec = find_executable(version)
+ if version_exec and version_exec != version:
91
+ return version_exec
92
93
# If it is in the form pythonx.x search in the default
94
# place on windows
0 commit comments