mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-19 00:54:42 +04:00
Fix windows virtualenv issue
This commit is contained in:
parent
e2bae300fe
commit
4262487d12
1 changed files with 3 additions and 2 deletions
|
|
@ -86,8 +86,9 @@ def get_default_version():
|
||||||
def norm_version(version):
|
def norm_version(version):
|
||||||
if os.name == 'nt': # pragma: no cover (windows)
|
if os.name == 'nt': # pragma: no cover (windows)
|
||||||
# Try looking up by name
|
# Try looking up by name
|
||||||
if find_executable(version) and find_executable(version) != version:
|
version_exec = find_executable(version)
|
||||||
return version
|
if version_exec and version_exec != version:
|
||||||
|
return version_exec
|
||||||
|
|
||||||
# If it is in the form pythonx.x search in the default
|
# If it is in the form pythonx.x search in the default
|
||||||
# place on windows
|
# place on windows
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue