aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Francoise2008-08-24 19:47:23 +0000
committerRomain Francoise2008-08-24 19:47:23 +0000
commite827fd3d08f58d16a49cd55a2ed8cb8c3236a513 (patch)
treee5fcc886e5d64264f85393fafd7e224bac368120
parent9a1c7a11c1f248309879268f3fd707fbcd06ad75 (diff)
downloademacs-e827fd3d08f58d16a49cd55a2ed8cb8c3236a513.tar.gz
emacs-e827fd3d08f58d16a49cd55a2ed8cb8c3236a513.zip
(run-python): Remove '' from sys.path.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/progmodes/python.el4
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 635f93a934e..dcce8acda17 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12008-08-24 Romain Francoise <romain@orebokech.com>
2
3 * progmodes/python.el (run-python): Remove '' from sys.path.
4
12008-08-23 Glenn Morris <rgm@gnu.org> 52008-08-23 Glenn Morris <rgm@gnu.org>
2 6
3 * dired-x.el (dired-guess-shell-alist-user): Doc fix. 7 * dired-x.el (dired-guess-shell-alist-user): Doc fix.
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