scratch above fix
seems main place to fix is py-choose-shell
Here is the diff
*************** *** 7563,7577 ****
With \\[universal-argument]) user is prompted to specify a reachable Python version." (interactive "P") ! (let ((erg (cond ((eq 4 (prefix-numeric-value arg)) ! (read-from-minibuffer "Python Shell: " py-shell-name)) ! (py-use-local-default ! (if (not (string= "" py-shell-local-path)) ! (expand-file-name py-shell-local-path) ! (message "Abort: `py-use-local-default' is set to `t' but `py-shell-local-path' is empty. Maybe call `py-toggle-local-default-use'"))) ! ((py-choose-shell-by-shebang)) ! ((py-choose-shell-by-import)) ! (t py-shell-name)))) (when (interactive-p) (message "%s" erg)) (setq py-shell-name erg) erg)) --- 7564,7580 ----
With \\[universal-argument]) user is prompted to specify a reachable Python version." (interactive "P") ! (let ((erg (cond ! (py-shell-name py-shell-name) ! ((eq 4 (prefix-numeric-value arg)) ! (read-from-minibuffer "Python Shell: " py-shell-name)) ! (py-use-local-default ! (if (not (string= "" py-shell-local-path)) ! (expand-file-name py-shell-local-path) ! (message "Abort: `py-use-local-default' is set to `t' but `py-shell-local-path' is empty. Maybe call `py-toggle-local-default-use'"))) ! ((py-choose-shell-by-shebang)) ! ((py-choose-shell-by-import)) ! (t nil)))) (when (interactive-p) (message "%s" erg)) (setq py-shell-name erg) erg))
scratch above fix
seems main place to fix is py-choose-shell
Here is the diff
***************
*** 7563,7577 ****
With \\[universal- argument] ) user is prompted to specify a reachable Python version." numeric- value arg)) minibuffer "Python Shell: " py-shell-name)) local-default local-path) ) local-path) local-default' is set to `t' but `py-shell- local-path' is empty. Maybe call `py-toggle- local-default- use'")) ) shell-by- shebang) ) shell-by- import) )
(interactive "P")
! (let ((erg (cond ((eq 4 (prefix-
! (read-from-
! (py-use-
! (if (not (string= "" py-shell-
! (expand-file-name py-shell-
! (message "Abort: `py-use-
! ((py-choose-
! ((py-choose-
! (t py-shell-name))))
(when (interactive-p) (message "%s" erg))
(setq py-shell-name erg)
erg))
--- 7564,7580 ----
With \\[universal- argument] ) user is prompted to specify a reachable Python version." numeric- value arg)) minibuffer "Python Shell: " py-shell-name)) local-default local-path) ) local-path) local-default' is set to `t' but `py-shell- local-path' is empty. Maybe call `py-toggle- local-default- use'")) ) shell-by- shebang) ) shell-by- import) )
(interactive "P")
! (let ((erg (cond
! (py-shell-name py-shell-name)
! ((eq 4 (prefix-
! (read-from-
! (py-use-
! (if (not (string= "" py-shell-
! (expand-file-name py-shell-
! (message "Abort: `py-use-
! ((py-choose-
! ((py-choose-
! (t nil))))
(when (interactive-p) (message "%s" erg))
(setq py-shell-name erg)
erg))