Changeset 6 for trunk

Show
Ignore:
Timestamp:
12/23/05 18:46:09 (7 years ago)
Author:
grig
Message:

Verify that pylint script can actually be executed properly.

Files:

Legend:

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

    r2 r6  
    726726            self.index[index_type].details = "pylint not available" 
    727727            return self.index[index_type] 
     728        # Now try to actually run the pylint script 
     729        p = Popen(["pylint"], stdout=PIPE, stderr=STDOUT) 
     730        output = p.communicate()[0] 
     731        rc = p.returncode 
     732        if rc: 
     733            # We encountered an error 
     734            self.index[index_type].details = "pylint not properly installed" 
     735            return self.index[index_type] 
    728736        index_pylint = 0 
    729737        cnt = 0