From 67067d75559c4163d67360581e36cf7ac7b2b457 Mon Sep 17 00:00:00 2001 From: Julian Gilbey Date: Thu, 5 Jan 2023 09:27:54 +0100 Subject: [PATCH] Executable is python3 --- pylsp/plugins/pylint_lint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pylsp/plugins/pylint_lint.py b/pylsp/plugins/pylint_lint.py index 67f68faf..4dbb137d 100644 --- a/pylsp/plugins/pylint_lint.py +++ b/pylsp/plugins/pylint_lint.py @@ -286,7 +286,7 @@ def _run_pylint_stdio(pylint_executable, document, flags): p = Popen(cmd, stdin=PIPE, stdout=PIPE, stderr=PIPE) except IOError: log.debug("Can't execute %s. Trying with 'python -m pylint'", pylint_executable) - cmd = ["python", "-m", "pylint"] + cmd = [sys.executable, "-m", "pylint"] cmd.extend(flags) cmd.extend(["--from-stdin", document.path]) p = Popen( # pylint: disable=consider-using-with