Support both python and python3 executable names
This commit is contained in:
parent
4103c2d849
commit
3c47f179be
1 changed files with 2 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue