Mercurial > emacs
diff lisp/progmodes/python.el @ 97689:5f56382dc026
(run-python): Remove '' from sys.path.
author | Romain Francoise <romain@orebokech.com> |
---|---|
date | Sun, 24 Aug 2008 19:47:07 +0000 |
parents | 464e6f78f756 |
children | 9f4cc3f73286 |
line wrap: on
line diff
--- a/lisp/progmodes/python.el Sun Aug 24 19:06:36 2008 +0000 +++ b/lisp/progmodes/python.el Sun Aug 24 19:47:07 2008 +0000 @@ -1547,7 +1547,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="