Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions ob-ipython.el
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,15 @@
procs)))

(defun ob-ipython--launch-driver (name &rest args)
(let* ((python (locate-file (if (eq system-type 'windows-nt)
"python.exe"
(or python-shell-interpreter "python"))
exec-path))
(pargs (append (list python "--" ob-ipython-driver-path) args)))
(let* ((command (if (eq system-type 'windows-nt)
"python.exe"
(or python-shell-interpreter "python")))
(exec-path (if (and command (file-name-directory command))
;; If the command has slashes, make sure we
;; first look relative to the current directory.
(cons default-directory exec-path) exec-path))
(python (locate-file command exec-path))
(pargs (append (list python "--" ob-ipython-driver-path) args)))
(ob-ipython--create-process name pargs)
;; give kernel time to initialize and write connection file
(sleep-for 1)))
Expand Down