diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-09-06 04:23:53 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-09-06 04:24:09 +0000 |
commit | 1968ada2d36e4508ef787e57f0e5f63214bcbad7 (patch) | |
tree | 69c01b5108b09faafa39e56ae48add8a2439f9db /pre_commit/languages/python.py | |
parent | Releasing debian version 2.14.0-2. (diff) | |
download | pre-commit-1968ada2d36e4508ef787e57f0e5f63214bcbad7.tar.xz pre-commit-1968ada2d36e4508ef787e57f0e5f63214bcbad7.zip |
Merging upstream version 2.15.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | pre_commit/languages/python.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pre_commit/languages/python.py b/pre_commit/languages/python.py index 43b7280..faa6029 100644 --- a/pre_commit/languages/python.py +++ b/pre_commit/languages/python.py @@ -21,6 +21,7 @@ from pre_commit.util import CalledProcessError from pre_commit.util import clean_path_on_failure from pre_commit.util import cmd_output from pre_commit.util import cmd_output_b +from pre_commit.util import win_exe ENVIRONMENT_DIR = 'py_env' @@ -172,7 +173,7 @@ def healthy(prefix: Prefix, language_version: str) -> bool: if not os.path.exists(pyvenv_cfg): return False - exe_name = 'python.exe' if sys.platform == 'win32' else 'python' + exe_name = win_exe('python') py_exe = prefix.path(bin_dir(envdir), exe_name) cfg = _read_pyvenv_cfg(pyvenv_cfg) |