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 19e9373a5ec..341d1c46722 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -1355,7 +1355,9 @@ buffer for a list of commands.)"
1355 ;; invoked. Would support multiple processes better. 1355 ;; invoked. Would support multiple processes better.
1356 (when (or new (not (comint-check-proc python-buffer))) 1356 (when (or new (not (comint-check-proc python-buffer)))
1357 (with-current-buffer 1357 (with-current-buffer
1358 (let* ((cmdlist (append (python-args-to-list cmd) '("-i"))) 1358 (let* ((cmdlist
1359 (append (python-args-to-list cmd)
1360 '("-i" "-c" "import sys; sys.path.remove('')")))
1359 (path (getenv "PYTHONPATH")) 1361 (path (getenv "PYTHONPATH"))
1360 (process-environment ; to import emacs.py 1362 (process-environment ; to import emacs.py
1361 (cons (concat "PYTHONPATH=" data-directory 1363 (cons (concat "PYTHONPATH=" data-directory