python-python-lsp-server/python-lsp-server-pr327-sys-executable.patch
Benjamin Greiner 9194a44777 Accepting request 1045987 from home:bnavigator:branches:devel:languages:python:numeric
- Update to 1.7.0
  * Add a new plugin to provide autoimport functionality (disabled
    by default).
  * Add progress reporting.
  * Make jedi_definition plugin follow definitions to pyi files.
  * Add support for flake8 version 6.
  * Add support for Yapf ignore patterns.
  * Add mccabe setting to flake8 plugin.
- Drop python-lsp-server-pr316-flake8v6.patch upstreamed
  * gh#python-lsp/python-lsp-server#316
- Add python-lsp-server-pr327-sys-executable.patch
  * gh#python-lsp/python-lsp-server#327

OBS-URL: https://build.opensuse.org/request/show/1045987
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-lsp-server?expand=0&rev=29
2023-01-01 10:41:21 +00:00

14 lines
445 B
Diff

diff --git a/pylsp/plugins/pylint_lint.py b/pylsp/plugins/pylint_lint.py
index 452f45b..222cdb8 100644
--- a/pylsp/plugins/pylint_lint.py
+++ b/pylsp/plugins/pylint_lint.py
@@ -85,7 +85,7 @@ class PylintLinter:
return cls.last_diags[document.path]
cmd = [
- 'python',
+ sys.executable,
'-c',
'import sys; from pylint.lint import Run; Run(sys.argv[1:])',
'-f',