mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
azure pipelines [skip travis] [skip appveyor]
This commit is contained in:
parent
09e64e8ff6
commit
9c6edab726
9 changed files with 72 additions and 85 deletions
|
|
@ -109,15 +109,15 @@ def norm_version(version):
|
|||
if _sys_executable_matches(version):
|
||||
return sys.executable
|
||||
|
||||
version_exec = _find_by_py_launcher(version)
|
||||
if version_exec:
|
||||
return version_exec
|
||||
|
||||
# Try looking up by name
|
||||
version_exec = find_executable(version)
|
||||
if version_exec and version_exec != version:
|
||||
return version_exec
|
||||
|
||||
version_exec = _find_by_py_launcher(version)
|
||||
if version_exec:
|
||||
return version_exec
|
||||
|
||||
# If it is in the form pythonx.x search in the default
|
||||
# place on windows
|
||||
if version.startswith('python'):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue