diff options
author | Romain Francoise <romain@orebokech.com> | 2008-08-24 19:47:23 +0000 |
---|---|---|
committer | Romain Francoise <romain@orebokech.com> | 2008-08-24 19:47:23 +0000 |
commit | e827fd3d08f58d16a49cd55a2ed8cb8c3236a513 (patch) | |
tree | e5fcc886e5d64264f85393fafd7e224bac368120 | |
parent | 9a1c7a11c1f248309879268f3fd707fbcd06ad75 (diff) | |
download | emacs-e827fd3d08f58d16a49cd55a2ed8cb8c3236a513.tar.gz |
(run-python): Remove '' from sys.path.
-rw-r--r-- | lisp/ChangeLog | 4 | ||||
-rw-r--r-- | lisp/progmodes/python.el | 4 |
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 @@ +2008-08-24 Romain Francoise <romain@orebokech.com> + + * progmodes/python.el (run-python): Remove '' from sys.path. + 2008-08-23 Glenn Morris <rgm@gnu.org> * 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.)" ;; invoked. Would support multiple processes better. (when (or new (not (comint-check-proc python-buffer))) (with-current-buffer - (let* ((cmdlist (append (python-args-to-list cmd) '("-i"))) + (let* ((cmdlist + (append (python-args-to-list cmd) + '("-i" "-c" "import sys; sys.path.remove('')"))) (path (getenv "PYTHONPATH")) (process-environment ; to import emacs.py (cons (concat "PYTHONPATH=" data-directory |