fix(python): +python-executable-find ipython

+python-executable-find cannot find ipython since /bin/python is
hardcoded instead of using the parameter
This commit is contained in:
emiltoacs
2024-10-28 11:39:38 +01:00
committed by Henrik Lissner
parent 52d1c208d4
commit 4a8f3bf033

View File

@ -16,8 +16,8 @@ falling back on searching your PATH."
(let ((bin (expand-file-name (concat conda-env-current-name "/" exe-root) (let ((bin (expand-file-name (concat conda-env-current-name "/" exe-root)
(conda-env-default-location)))) (conda-env-default-location))))
(if (file-executable-p bin) bin)))) (if (file-executable-p bin) bin))))
((when-let (bin (projectile-locate-dominating-file default-directory "bin/python")) ((when-let (bin (projectile-locate-dominating-file default-directory exe-root))
(setq-local doom-modeline-python-executable (expand-file-name "bin/python" bin)))) (setq-local doom-modeline-python-executable (expand-file-name exe-root bin))))
((executable-find exe)))))) ((executable-find exe))))))
;;;###autoload ;;;###autoload