Changeset 85
- Timestamp:
- 07/11/06 14:08:45 (2 years ago)
- Files:
-
- branches/mk/cheesecake/cheesecake_index.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/mk/cheesecake/cheesecake_index.py
r84 r85 844 844 cnt = 0 845 845 846 # wbg: switching cwd so that pylint works correctly regarding847 # running it on individual modules848 original_cwd = os.getcwd()849 os.chdir(package_dir)850 851 846 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) 856 848 path, filename = os.path.split(fullpath) 857 849 module, ext = os.path.splitext(filename) … … 876 868 pylint_value += float(score) 877 869 cnt += 1 878 879 # wbg: switching back to the original cwd in case that's important880 os.chdir(original_cwd)881 870 882 871 avg_score = 0
