From 3c47f179be459621c86a1ab1a07e450e77327898 Mon Sep 17 00:00:00 2001 From: Ohad Livne Date: Wed, 4 Jun 2025 22:45:18 +0300 Subject: [PATCH] Support both python and python3 executable names --- .config/emacs/init.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.config/emacs/init.el b/.config/emacs/init.el index 1215370..5fdd020 100644 --- a/.config/emacs/init.el +++ b/.config/emacs/init.el @@ -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))