Skip to content

Commit

Permalink
Don't enable python flymake unless pyflakes executable is found
Browse files Browse the repository at this point in the history
  • Loading branch information
purcell committed Oct 11, 2010
1 parent 3596bcc commit 0e9faeb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion site-lisp/flymake-python/flymake-python.el
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
(interactive)
(set (make-local-variable 'flymake-allowed-file-name-masks)
flymake-python-allowed-file-name-masks)
(flymake-mode t))
(if (executable-find flymake-python-pyflakes-executable)
(flymake-mode t)
(message "not enabling flymake: pyflakes executable not found")))


(provide 'flymake-python)

0 comments on commit 0e9faeb

Please sign in to comment.