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.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 9ca11acfce8..5fbd617be10 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -1547,7 +1547,9 @@ buffer for a list of commands.)"
1547 ;; invoked. Would support multiple processes better. 1547 ;; invoked. Would support multiple processes better.
1548 (when (or new (not (comint-check-proc python-buffer))) 1548 (when (or new (not (comint-check-proc python-buffer)))
1549 (with-current-buffer 1549 (with-current-buffer
1550 (let* ((cmdlist (append (python-args-to-list cmd) '("-i"))) 1550 (let* ((cmdlist
1551 (append (python-args-to-list cmd)
1552 '("-i" "-c" "import sys; sys.path.remove('')")))
1551 (path (getenv "PYTHONPATH")) 1553 (path (getenv "PYTHONPATH"))
1552 (process-environment ; to import emacs.py 1554 (process-environment ; to import emacs.py
1553 (cons (concat "PYTHONPATH=" 1555 (cons (concat "PYTHONPATH="