From: Romain Francoise Date: Sun, 24 Aug 2008 19:47:07 +0000 (+0000) Subject: (run-python): Remove '' from sys.path. X-Git-Tag: emacs-pretest-23.0.90~3296 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=75adb00dcfed4ab6ee916ad1202c504e859514e5;p=emacs.git (run-python): Remove '' from sys.path. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 909adf8fe09..4695b9d023d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2008-08-24 Romain Francoise + + * progmodes/python.el (run-python): Remove '' from sys.path. + 2008-08-23 Glenn Morris * progmodes/fortran.el (fortran-tab-mode-string) diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 9ca11acfce8..5fbd617be10 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -1547,7 +1547,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="