fix(python): repl: respect python-shell-dedicated
This commit is contained in:
parent
103843a44d
commit
c8030df9ee
1 changed files with 11 additions and 10 deletions
|
@ -29,6 +29,7 @@ falling back on searching your PATH."
|
|||
(user-error "`python-shell-interpreter' isn't set"))
|
||||
(pop-to-buffer
|
||||
(process-buffer
|
||||
(let ((dedicated (bound-and-true-p python-shell-dedicated)))
|
||||
(if-let* ((pipenv (+python-executable-find "pipenv"))
|
||||
(pipenv-project (pipenv-project-p)))
|
||||
(let ((default-directory pipenv-project)
|
||||
|
@ -37,8 +38,8 @@ falling back on searching your PATH."
|
|||
python-shell-interpreter
|
||||
python-shell-interpreter-args))
|
||||
(python-shell-interpreter pipenv))
|
||||
(run-python nil nil t))
|
||||
(run-python nil nil t)))))
|
||||
(run-python nil dedicated t))
|
||||
(run-python nil dedicated t))))))
|
||||
|
||||
;;;###autoload
|
||||
(defun +python/open-ipython-repl ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue