1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-17 17:58:46 +00:00

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

This commit is contained in:
Romain Francoise 2008-08-24 19:47:23 +00:00
parent 9a1c7a11c1
commit e827fd3d08
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>
* dired-x.el (dired-guess-shell-alist-user): Doc fix.

View File

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