Skip to content

Commit

Permalink
refactor: try "python3" if "python" is not available
Browse files Browse the repository at this point in the history
On some Linux distro, only "python3" is builtin.

Signed-off-by: Jack Cherng <[email protected]>
  • Loading branch information
jfcherng committed Oct 24, 2023
1 parent a2b9ba1 commit 2e25290
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def python_path(cls, settings: DottedDict, workspace_folders: List[WorkspaceFold
else:
break

return shutil.which("python") or "python"
return shutil.which("python") or shutil.which("python3") or ""

@classmethod
def python_path_from_venv(cls, workspace_folder: str) -> Optional[str]:
Expand Down

0 comments on commit 2e25290

Please sign in to comment.