mirror of
https://github.com/doomemacs/doomemacs.git
synced 2025-12-15 14:51:01 -08:00
fix(org): update org-babel-python-command-nonsession
Ref: bzg/org-mode@9239b0e8d1
This commit is contained in:
parent
a4526fd10d
commit
6eb467668e
1 changed files with 3 additions and 3 deletions
|
|
@ -286,9 +286,9 @@ Also adds support for a `:sync' parameter to override `:async'."
|
|||
(end (progn (goto-char beg) (forward-line) (org-babel-result-end))))
|
||||
(org-display-inline-images nil nil (min beg end) (max beg end)))))))
|
||||
|
||||
(after! python
|
||||
(unless org-babel-python-command
|
||||
(setq org-babel-python-command
|
||||
(after! ob-python
|
||||
(when (equal org-babel-python-command-nonsession "python")
|
||||
(setq org-babel-python-command-nonsession
|
||||
(string-trim
|
||||
(concat python-shell-interpreter " "
|
||||
(if (string-match-p "\\<i?python[23]?$" python-shell-interpreter)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue