(run-python): Remove '' from sys.path.

This commit is contained in:
Romain Francoise 2008-08-24 19:47:07 +00:00
parent 8a445f762f
commit 75adb00dcf
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2008-08-24 Romain Francoise <romain@orebokech.com>
* progmodes/python.el (run-python): Remove '' from sys.path.
2008-08-23 Glenn Morris <rgm@gnu.org>
* progmodes/fortran.el (fortran-tab-mode-string)

View file

@ -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="