From 5f37d22938f7f8ed9715e574da20cf35a5d57685 Mon Sep 17 00:00:00 2001 From: Fabio Leimgruber Date: Sat, 30 Sep 2017 01:39:29 +0200 Subject: [PATCH] Custom python interpreter for Windows platform * ob-ipython.el (ob-ipython--launch-driver): See also #96 upstream. --- ob-ipython.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ob-ipython.el b/ob-ipython.el index ff4c4df..d94f94c 100644 --- a/ob-ipython.el +++ b/ob-ipython.el @@ -173,9 +173,11 @@ can be displayed.") 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")) + (let* ((python-candidate (if (eq system-type 'windows-nt) + "python.exe" + "python")) + (python (locate-file (or python-shell-interpreter + python-candidate) exec-path)) (pargs (append (list python "--" ob-ipython-driver-path) args))) (ob-ipython--create-process name pargs)