Skip to content

Commit

Permalink
Try to fix issue #732 , use python.exe if python3.exe not found.
Browse files Browse the repository at this point in the history
  • Loading branch information
manateelazycat committed Oct 11, 2023
1 parent 31281b0 commit 5115963
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions lsp-bridge.el
Original file line number Diff line number Diff line change
Expand Up @@ -318,12 +318,18 @@ Setting this to nil or 0 will turn off the indicator."
:type 'string)

(defcustom lsp-bridge-python-command (cond ((memq system-type '(cygwin windows-nt ms-dos))
(if (executable-find "pypy3.exe")
"pypy3.exe"
"python3.exe"))
(t (if (executable-find "pypy3")
"pypy3"
"python3")))
(cond ((executable-find "pypy3.exe")
"pypy3.exe")
((executable-find "python3.exe")
"python3.exe")
((executable-find "python.exe")
"python.exe")))
(t (cond ((executable-find "pypy3")
"pypy3")
((executable-find "python3")
"python3")
((executable-find "python")
"python"))))
"The Python interpreter used to run lsp_bridge.py."
:type 'string)

Expand Down

0 comments on commit 5115963

Please sign in to comment.