aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorRomain Francoise2008-08-24 19:47:23 +0000
committerRomain Francoise2008-08-24 19:47:23 +0000
commite827fd3d08f58d16a49cd55a2ed8cb8c3236a513 (patch)
treee5fcc886e5d64264f85393fafd7e224bac368120 /lisp/progmodes/python.el
parent9a1c7a11c1f248309879268f3fd707fbcd06ad75 (diff)
downloademacs-e827fd3d08f58d16a49cd55a2ed8cb8c3236a513.tar.gz
emacs-e827fd3d08f58d16a49cd55a2ed8cb8c3236a513.zip
(run-python): Remove '' from sys.path.
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