Skip to content

Commit 2a7d5b7

Browse files
jsprickeJulian Gilbey
and
Julian Gilbey
authored
Replace call to python with sys.executable in Pylint plugin (#487)
Co-authored-by: Julian Gilbey <jdg@debian.org>
1 parent 3525e8b commit 2a7d5b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pylsp/plugins/pylint_lint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ def _run_pylint_stdio(pylint_executable, document, flags):
286286
p = Popen(cmd, stdin=PIPE, stdout=PIPE, stderr=PIPE)
287287
except IOError:
288288
log.debug("Can't execute %s. Trying with 'python -m pylint'", pylint_executable)
289-
cmd = ["python", "-m", "pylint"]
289+
cmd = [sys.executable, "-m", "pylint"]
290290
cmd.extend(flags)
291291
cmd.extend(["--from-stdin", document.path])
292292
p = Popen( # pylint: disable=consider-using-with

0 commit comments

Comments
 (0)