Skip to content

Commit 3ef5c5e

Browse files
Julian Gilbeyjspricke
Julian Gilbey
authored andcommitted
Executable is python3
1 parent 3525e8b commit 3ef5c5e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: pylsp/plugins/pylint_lint.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
from subprocess import Popen, PIPE
1111
import os
1212
import shlex
13+
import sys
1314

1415
from pylsp import hookimpl, lsp
1516

@@ -286,7 +287,7 @@ def _run_pylint_stdio(pylint_executable, document, flags):
286287
p = Popen(cmd, stdin=PIPE, stdout=PIPE, stderr=PIPE)
287288
except IOError:
288289
log.debug("Can't execute %s. Trying with 'python -m pylint'", pylint_executable)
289-
cmd = ["python", "-m", "pylint"]
290+
cmd = [sys.executable, "-m", "pylint"]
290291
cmd.extend(flags)
291292
cmd.extend(["--from-stdin", document.path])
292293
p = Popen( # pylint: disable=consider-using-with

0 commit comments

Comments
 (0)