(run-python): Remove '' from sys.path.
This commit is contained in:
parent
9a1c7a11c1
commit
e827fd3d08
2 changed files with 7 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue