Commit bac2de0f authored by Stefan Monnier's avatar Stefan Monnier
Browse files

* lisp/progmodes/python.el (run-python): Explain why we remove the current

directory from sys.path.  Suggested by Eric Hanchrow <erich@cozi.com>.
parent c04f2ac0
2010-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
 
* progmodes/python.el (run-python): Explain why we remove the current
directory from sys.path. Suggested by Eric Hanchrow <erich@cozi.com>.
* progmodes/grep.el (grep-regexp-alist): Tighten the regexp (bug#7378).
 
2010-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
......
......@@ -1586,6 +1586,11 @@ buffer for a list of commands.)"
(with-current-buffer
(let* ((cmdlist
(append (python-args-to-list cmd)
;; It's easy for the user to cause the process to be
;; started without realizing it (e.g. to perform
;; completion); for this reason loading files from the
;; current directory is a security risk. See
;; http://article.gmane.org/gmane.emacs.devel/103569
'("-i" "-c" "import sys; sys.path.remove('')")))
(path (getenv "PYTHONPATH"))
(process-environment ; to import emacs.py
......
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