Changeset 7

Show
Ignore:
Timestamp:
12/26/05 09:55:55 (7 years ago)
Author:
grig
Message:

Check for pylint --version to see if pylint is correctly installed.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cheesecake/cheesecake_index.py

    r6 r7  
    721721        """ 
    722722        index_type = "pylint" 
    723         try: 
    724             import pylint 
    725         except ImportError, e: 
    726             self.index[index_type].details = "pylint not available" 
    727             return self.index[index_type] 
    728         # Now try to actually run the pylint script 
    729         p = Popen(["pylint"], stdout=PIPE, stderr=STDOUT) 
     723            # Try to run the pylint script 
     724        p = Popen(["pylint", "--version"], stdout=PIPE, stderr=STDOUT) 
    730725        output = p.communicate()[0] 
    731726        rc = p.returncode