aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el12
1 files changed, 7 insertions, 5 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 60121ac6b41..a51cff8529e 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -1894,7 +1894,7 @@ detection and just returns nil."
1894 (let ((code-file (python-shell--save-temp-file code))) 1894 (let ((code-file (python-shell--save-temp-file code)))
1895 ;; Use `process-file' as it is remote-host friendly. 1895 ;; Use `process-file' as it is remote-host friendly.
1896 (process-file 1896 (process-file
1897 (executable-find python-shell-interpreter) 1897 python-shell-interpreter
1898 code-file 1898 code-file
1899 '(t nil) 1899 '(t nil)
1900 nil 1900 nil
@@ -2048,11 +2048,14 @@ uniqueness for different types of configurations."
2048 (or python-shell-virtualenv-path "") 2048 (or python-shell-virtualenv-path "")
2049 (mapconcat #'identity python-shell-exec-path ""))))) 2049 (mapconcat #'identity python-shell-exec-path "")))))
2050 2050
2051(defun python-shell-parse-command () 2051(defun python-shell-parse-command () ;FIXME: why name it "parse"?
2052 "Calculate the string used to execute the inferior Python process." 2052 "Calculate the string used to execute the inferior Python process."
2053 ;; FIXME: process-environment doesn't seem to be used anywhere within
2054 ;; this let.
2053 (let ((process-environment (python-shell-calculate-process-environment)) 2055 (let ((process-environment (python-shell-calculate-process-environment))
2054 (exec-path (python-shell-calculate-exec-path))) 2056 (exec-path (python-shell-calculate-exec-path)))
2055 (format "%s %s" 2057 (format "%s %s"
2058 ;; FIXME: Why executable-find?
2056 (executable-find python-shell-interpreter) 2059 (executable-find python-shell-interpreter)
2057 python-shell-interpreter-args))) 2060 python-shell-interpreter-args)))
2058 2061
@@ -2084,11 +2087,10 @@ uniqueness for different types of configurations."
2084(defun python-shell-calculate-exec-path () 2087(defun python-shell-calculate-exec-path ()
2085 "Calculate exec path given `python-shell-virtualenv-path'." 2088 "Calculate exec path given `python-shell-virtualenv-path'."
2086 (let ((path (append python-shell-exec-path 2089 (let ((path (append python-shell-exec-path
2087 exec-path nil))) 2090 exec-path nil))) ;FIXME: Why nil?
2088 (if (not python-shell-virtualenv-path) 2091 (if (not python-shell-virtualenv-path)
2089 path 2092 path
2090 (cons (format "%s/bin" 2093 (cons (expand-file-name "bin" python-shell-virtualenv-path)
2091 (directory-file-name python-shell-virtualenv-path))
2092 path)))) 2094 path))))
2093 2095
2094(defun python-comint-output-filter-function (output) 2096(defun python-comint-output-filter-function (output)