Changeset 85

Show
Ignore:
Timestamp:
07/11/06 14:08:45 (7 years ago)
Author:
grig
Message:

Backed out Will's pylint-related changes from revision:84 -- because some functional tests started to fail. Need to investigate why that was happening.

Files:

Legend:

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

    r84 r85  
    844844        cnt = 0 
    845845 
    846         # wbg: switching cwd so that pylint works correctly regarding 
    847         # running it on individual modules 
    848         original_cwd = os.getcwd() 
    849         os.chdir(package_dir) 
    850  
    851846        for pyfile in get_files_of_type(files_list, 'module'): 
    852             # wbg: because we change the working dir, we can use relative 
    853             # paths which pylint is happier about. 
    854             # fullpath = os.path.join(package_dir, pyfile) 
    855             fullpath = pyfile 
     847            fullpath = os.path.join(package_dir, pyfile) 
    856848            path, filename = os.path.split(fullpath) 
    857849            module, ext = os.path.splitext(filename) 
     
    876868                pylint_value += float(score) 
    877869                cnt += 1 
    878  
    879         # wbg: switching back to the original cwd in case that's important 
    880         os.chdir(original_cwd) 
    881870 
    882871        avg_score = 0