diff options
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index def6d8bba94..5406d74f69e 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -2144,7 +2144,7 @@ The skeleton will be bound to python-skeleton-NAME." | |||
| 2144 | ;;; Code check | 2144 | ;;; Code check |
| 2145 | 2145 | ||
| 2146 | (defcustom python-check-command | 2146 | (defcustom python-check-command |
| 2147 | "pychecker --stdlib" | 2147 | "pyflakes" |
| 2148 | "Command used to check a Python file." | 2148 | "Command used to check a Python file." |
| 2149 | :type 'string | 2149 | :type 'string |
| 2150 | :group 'python) | 2150 | :group 'python) |
| @@ -2168,7 +2168,9 @@ Runs COMMAND, a shell command, as if by `compile'. See | |||
| 2168 | ""))))))) | 2168 | ""))))))) |
| 2169 | (setq python-check-custom-command command) | 2169 | (setq python-check-custom-command command) |
| 2170 | (save-some-buffers (not compilation-ask-about-save) nil) | 2170 | (save-some-buffers (not compilation-ask-about-save) nil) |
| 2171 | (compilation-start command)) | 2171 | (let ((process-environment (python-shell-calculate-process-environment)) |
| 2172 | (exec-path (python-shell-calculate-exec-path))) | ||
| 2173 | (compilation-start command))) | ||
| 2172 | 2174 | ||
| 2173 | 2175 | ||
| 2174 | ;;; Eldoc | 2176 | ;;; Eldoc |