mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
commit
a81de1ebb3
1 changed files with 3 additions and 2 deletions
|
|
@ -53,9 +53,10 @@ def find_executable(exe, _environ=None):
|
|||
environ = _environ if _environ is not None else os.environ
|
||||
|
||||
if 'PATHEXT' in environ:
|
||||
possible_exe_names = (exe,) + tuple(
|
||||
possible_exe_names = tuple(
|
||||
exe + ext.lower() for ext in environ['PATHEXT'].split(os.pathsep)
|
||||
)
|
||||
) + (exe,)
|
||||
|
||||
else:
|
||||
possible_exe_names = (exe,)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue