Mercurial > emacs
comparison lisp/progmodes/python.el @ 111750:372e746a38d7
python.el comment.
| author | Glenn Morris <rgm@gnu.org> |
|---|---|
| date | Sat, 20 Nov 2010 18:19:39 -0800 |
| parents | d4d6fcc60f7b |
| children | 3776ded7f730 |
comparison
equal
deleted
inserted
replaced
| 111749:6e15675f8126 | 111750:372e746a38d7 |
|---|---|
| 1548 ;; invoked. Would support multiple processes better. | 1548 ;; invoked. Would support multiple processes better. |
| 1549 (when (or new (not (comint-check-proc python-buffer))) | 1549 (when (or new (not (comint-check-proc python-buffer))) |
| 1550 (with-current-buffer | 1550 (with-current-buffer |
| 1551 (let* ((cmdlist | 1551 (let* ((cmdlist |
| 1552 (append (python-args-to-list cmd) | 1552 (append (python-args-to-list cmd) |
| 1553 ;; See http://lists.gnu.org/archive/html/emacs-devel/2008-09/msg00215.html | |
| 1553 '("-i" "-c" "import sys; sys.path.remove('')"))) | 1554 '("-i" "-c" "import sys; sys.path.remove('')"))) |
| 1554 (path (getenv "PYTHONPATH")) | 1555 (path (getenv "PYTHONPATH")) |
| 1555 (process-environment ; to import emacs.py | 1556 (process-environment ; to import emacs.py |
| 1556 (cons (concat "PYTHONPATH=" | 1557 (cons (concat "PYTHONPATH=" |
| 1557 (if path (concat path path-separator)) | 1558 (if path (concat path path-separator)) |
