# HG changeset patch # User Romain Francoise # Date 1219607243 0 # Node ID 54fa0c487055a511bbe7daf524ba4e64d1b9efa2 # Parent 8e78c11def2d60ae9f7940ee1adec15d43e3cc0b (run-python): Remove '' from sys.path. diff -r 8e78c11def2d -r 54fa0c487055 lisp/ChangeLog --- a/lisp/ChangeLog Sat Aug 23 18:54:05 2008 +0000 +++ b/lisp/ChangeLog Sun Aug 24 19:47:23 2008 +0000 @@ -1,3 +1,7 @@ +2008-08-24 Romain Francoise + + * progmodes/python.el (run-python): Remove '' from sys.path. + 2008-08-23 Glenn Morris * dired-x.el (dired-guess-shell-alist-user): Doc fix. diff -r 8e78c11def2d -r 54fa0c487055 lisp/progmodes/python.el --- a/lisp/progmodes/python.el Sat Aug 23 18:54:05 2008 +0000 +++ b/lisp/progmodes/python.el Sun Aug 24 19:47:23 2008 +0000 @@ -1355,7 +1355,9 @@ ;; 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