We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0cd6f75 commit 6532a4eCopy full SHA for 6532a4e
1 file changed
ob-ipython.el
@@ -165,10 +165,12 @@ can be displayed.")
165
(apply 'start-process name buf (car cmd) (cdr cmd))))
166
167
(defun ob-ipython--get-python ()
168
- (locate-file (if (eq system-type 'windows-nt)
169
- "python.exe"
170
- (or python-shell-interpreter "python"))
171
- exec-path))
+ (let* ((python-candidate (if (eq system-type 'windows-nt)
+ "python.exe"
+ "python")))
+ (locate-file (or python-shell-interpreter
172
+ python-candidate)
173
+ exec-path)))
174
175
(defun ob-ipython--create-kernel (name &optional kernel)
176
(when (and (not (ignore-errors (process-live-p (get-process (format "kernel-%s" name)))))
0 commit comments