From e827fd3d08f58d16a49cd55a2ed8cb8c3236a513 Mon Sep 17 00:00:00 2001 From: Romain Francoise Date: Sun, 24 Aug 2008 19:47:23 +0000 Subject: (run-python): Remove '' from sys.path. --- lisp/progmodes/python.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lisp/progmodes/python.el') 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 -- cgit v1.2.1