Changeset 152

Show
Ignore:
Timestamp:
10/03/06 17:00:53 (7 years ago)
Author:
grig
Message:

Modified IndexPyLint? so that it checks for PYLINT env. variable (for pybot mainly, where pylint is installed somewhere under /tmp).

Files:

Legend:

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

    r150 r152  
    10481048 
    10491049    def compute(self, files_list, package_dir): 
     1050        # See if pylint script location is set via environment variable 
     1051        pylint_location = os.environ.get("PYLINT", "pylint") 
     1052 
    10501053        # Maximum length of arguments (not very precise). 
    10511054        max_arguments_length = 65536 
     
    10751078            self.cheesecake.log.debug("Running pylint on files: %s." % filenames) 
    10761079 
    1077             rc, output = run_cmd("pylint %s --persistent=n %s" % (filenames, self.pylint_args)) 
     1080            rc, output = run_cmd("%s %s --persistent=n %s" % (pylint_location, filenames, self.pylint_args)) 
    10781081            if rc: 
    10791082                self.cheesecake.log.debug("encountered an error (%d):\n***\n%s\n***\n" % (rc, output))