| 64 error = False |
64 error = False |
| 65 |
65 |
| 66 debug = False |
66 debug = False |
| 67 |
67 |
| 68 for filename in sys.argv[3:]: |
68 for filename in sys.argv[3:]: |
| |
69 if filename.endswith('.o'): |
| |
70 # On Windows, we sometimes have object files in sources, which we don't |
| |
71 # want to try to read. |
| |
72 continue |
| 69 file_data = None |
73 file_data = None |
| 70 with open(os.path.join(path, filename), 'r') as f: |
74 with open(os.path.join(path, filename), 'r') as f: |
| 71 file_data = f.read().splitlines(keepends=True) |
75 file_data = f.read().splitlines(keepends=True) |
| 72 |
76 |
| 73 # Look for a starting commenting ignoring newlines, if we find code, abort. |
77 # Look for a starting commenting ignoring newlines, if we find code, abort. |