diff options
author | Romain Francoise <romain@orebokech.com> | 2008-08-24 19:47:07 +0000 |
---|---|---|
committer | Romain Francoise <romain@orebokech.com> | 2008-08-24 19:47:07 +0000 |
commit | 75adb00dcfed4ab6ee916ad1202c504e859514e5 (patch) | |
tree | 42e9ed0ac7c81bb0b63751bf359922490bb7133a /lisp/progmodes/python.el | |
parent | 8a445f762f0acc4aa6276a92bed5efbfaa78c3bc (diff) | |
download | emacs-75adb00dcfed4ab6ee916ad1202c504e859514e5.tar.gz |
(run-python): Remove '' from sys.path.
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r-- | lisp/progmodes/python.el | 4 |
1 files changed, 3 insertions, 1 deletions
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=" |