Support both python and python3 executable names

This commit is contained in:
Ohad Livne 2025-06-04 22:45:18 +03:00
parent 4103c2d849
commit 3c47f179be
Signed by: libohad-dev
GPG key ID: 34FDC68B51191A4D

View file

@ -173,7 +173,8 @@
(defun python-run-test-at-point (debug)
(interactive "P")
(let ((python (executable-find "python"))
(let ((python (or (executable-find "python3")
(executable-find "python")))
(test-name (python-test-name-at-point)))
(if debug
(pdb (concat python " -m pdb -m unittest " test-name))