From b8d6134b71859d3536b60b5b80e06c25e8865d30 Mon Sep 17 00:00:00 2001 From: Ben Greiner Date: Sun, 1 Jan 2023 11:33:15 +0100 Subject: [PATCH] Use sys.executable instead of python --- 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 452f45b9..222cdb85 100644 --- a/pylsp/plugins/pylint_lint.py +++ b/pylsp/plugins/pylint_lint.py @@ -85,7 +85,7 @@ def lint(cls, document, is_saved, flags=''): return cls.last_diags[document.path] cmd = [ - 'python', + sys.executable, '-c', 'import sys; from pylint.lint import Run; Run(sys.argv[1:])', '-f',