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 /lisp/progmodes/python.el | |
| parent | 8a445f762f0acc4aa6276a92bed5efbfaa78c3bc (diff) | |
| download | emacs-75adb00dcfed4ab6ee916ad1202c504e859514e5.tar.gz emacs-75adb00dcfed4ab6ee916ad1202c504e859514e5.zip | |
(run-python): Remove '' from sys.path.
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 4 |
1 files changed, 3 insertions, 1 deletions
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=" |