Commit 75adb00d authored by Romain Francoise's avatar Romain Francoise

(run-python): Remove '' from sys.path.

parent 8a445f76
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>
* progmodes/fortran.el (fortran-tab-mode-string)
......
......@@ -1547,7 +1547,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="
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment