mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-13 04:20:28 -06:00
Fix windows virtualenv issue
This commit is contained in:
@@ -86,8 +86,9 @@ def get_default_version():
|
||||
def norm_version(version):
|
||||
if os.name == 'nt': # pragma: no cover (windows)
|
||||
# Try looking up by name
|
||||
if find_executable(version) and find_executable(version) != version:
|
||||
return version
|
||||
version_exec = find_executable(version)
|
||||
if version_exec and version_exec != version:
|
||||
return version_exec
|
||||
|
||||
# If it is in the form pythonx.x search in the default
|
||||
# place on windows
|
||||
|
||||
Reference in New Issue
Block a user