diff options
| author | Romain Francoise | 2008-08-24 19:47:07 +0000 |
|---|---|---|
| committer | Romain Francoise | 2008-08-24 19:47:07 +0000 |
| commit | 75adb00dcfed4ab6ee916ad1202c504e859514e5 (patch) | |
| tree | 42e9ed0ac7c81bb0b63751bf359922490bb7133a | |
| parent | 8a445f762f0acc4aa6276a92bed5efbfaa78c3bc (diff) | |
| download | emacs-75adb00dcfed4ab6ee916ad1202c504e859514e5.tar.gz emacs-75adb00dcfed4ab6ee916ad1202c504e859514e5.zip | |
(run-python): Remove '' from sys.path.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/progmodes/python.el | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 909adf8fe09..4695b9d023d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2008-08-24 Romain Francoise <romain@orebokech.com> | ||
| 2 | |||
| 3 | * progmodes/python.el (run-python): Remove '' from sys.path. | ||
| 4 | |||
| 1 | 2008-08-23 Glenn Morris <rgm@gnu.org> | 5 | 2008-08-23 Glenn Morris <rgm@gnu.org> |
| 2 | 6 | ||
| 3 | * progmodes/fortran.el (fortran-tab-mode-string) | 7 | * progmodes/fortran.el (fortran-tab-mode-string) |
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 9ca11acfce8..5fbd617be10 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -1547,7 +1547,9 @@ buffer for a list of commands.)" | |||
| 1547 | ;; invoked. Would support multiple processes better. | 1547 | ;; invoked. Would support multiple processes better. |
| 1548 | (when (or new (not (comint-check-proc python-buffer))) | 1548 | (when (or new (not (comint-check-proc python-buffer))) |
| 1549 | (with-current-buffer | 1549 | (with-current-buffer |
| 1550 | (let* ((cmdlist (append (python-args-to-list cmd) '("-i"))) | 1550 | (let* ((cmdlist |
| 1551 | (append (python-args-to-list cmd) | ||
| 1552 | '("-i" "-c" "import sys; sys.path.remove('')"))) | ||
| 1551 | (path (getenv "PYTHONPATH")) | 1553 | (path (getenv "PYTHONPATH")) |
| 1552 | (process-environment ; to import emacs.py | 1554 | (process-environment ; to import emacs.py |
| 1553 | (cons (concat "PYTHONPATH=" | 1555 | (cons (concat "PYTHONPATH=" |