heck for pylint and print a more useful error message if it can't be
imported, hinting that it needs to be installed.

Risk: Low
Visibility: run_pylint.py gives a more helpful error if pylint is
not installed.

Signed-off-by: John Admanski <jadmanski@google.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@2028 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/utils/run_pylint.py b/utils/run_pylint.py
index be757ff..e011542 100644
--- a/utils/run_pylint.py
+++ b/utils/run_pylint.py
@@ -3,6 +3,13 @@
 import os, sys, fnmatch
 import common
 
+# do a basic check to see if pylint is even installed
+try:
+    import pylint
+except ImportError:
+    print "Unable to import pylint, it may need to be installed"
+    sys.exit(1)
+
 pylintrc_path = os.path.expanduser('~/.pylintrc')
 if not os.path.exists(pylintrc_path):
     open(pylintrc_path, 'w').close()