mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
fix(python): repl: respect python-shell-dedicated
This commit is contained in:
@ -29,16 +29,17 @@ falling back on searching your PATH."
|
|||||||
(user-error "`python-shell-interpreter' isn't set"))
|
(user-error "`python-shell-interpreter' isn't set"))
|
||||||
(pop-to-buffer
|
(pop-to-buffer
|
||||||
(process-buffer
|
(process-buffer
|
||||||
(if-let* ((pipenv (+python-executable-find "pipenv"))
|
(let ((dedicated (bound-and-true-p python-shell-dedicated)))
|
||||||
(pipenv-project (pipenv-project-p)))
|
(if-let* ((pipenv (+python-executable-find "pipenv"))
|
||||||
(let ((default-directory pipenv-project)
|
(pipenv-project (pipenv-project-p)))
|
||||||
(python-shell-interpreter-args
|
(let ((default-directory pipenv-project)
|
||||||
(format "run %s %s"
|
(python-shell-interpreter-args
|
||||||
python-shell-interpreter
|
(format "run %s %s"
|
||||||
python-shell-interpreter-args))
|
python-shell-interpreter
|
||||||
(python-shell-interpreter pipenv))
|
python-shell-interpreter-args))
|
||||||
(run-python nil nil t))
|
(python-shell-interpreter pipenv))
|
||||||
(run-python nil nil t)))))
|
(run-python nil dedicated t))
|
||||||
|
(run-python nil dedicated t))))))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +python/open-ipython-repl ()
|
(defun +python/open-ipython-repl ()
|
||||||
|
Reference in New Issue
Block a user