diff options
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index d2bb82e0580..a19445f47f5 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -1586,6 +1586,11 @@ buffer for a list of commands.)" | |||
| 1586 | (with-current-buffer | 1586 | (with-current-buffer |
| 1587 | (let* ((cmdlist | 1587 | (let* ((cmdlist |
| 1588 | (append (python-args-to-list cmd) | 1588 | (append (python-args-to-list cmd) |
| 1589 | ;; It's easy for the user to cause the process to be | ||
| 1590 | ;; started without realizing it (e.g. to perform | ||
| 1591 | ;; completion); for this reason loading files from the | ||
| 1592 | ;; current directory is a security risk. See | ||
| 1593 | ;; http://article.gmane.org/gmane.emacs.devel/103569 | ||
| 1589 | '("-i" "-c" "import sys; sys.path.remove('')"))) | 1594 | '("-i" "-c" "import sys; sys.path.remove('')"))) |
| 1590 | (path (getenv "PYTHONPATH")) | 1595 | (path (getenv "PYTHONPATH")) |
| 1591 | (process-environment ; to import emacs.py | 1596 | (process-environment ; to import emacs.py |