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:
parent
9a1c7a11c1
commit
e827fd3d08
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user