Mercurial > codeOptimizer
comparison codeOptimizer.py @ 7:94b1959b0108
Fix bug if compile fails.
| author | Tom Fredrik Blenning Klaussen <bfg@blenning.no> |
|---|---|
| date | Mon, 24 Sep 2012 10:32:09 +0200 |
| parents | 3a56cd936c59 |
| children | 5b542d05e2b1 |
comparison
equal
deleted
inserted
replaced
| 6:ebc6eb06d08e | 7:94b1959b0108 |
|---|---|
| 53 files = depgraph.directedGraph() | 53 files = depgraph.directedGraph() |
| 54 print files | 54 print files |
| 55 | 55 |
| 56 for file in files: | 56 for file in files: |
| 57 if not file.worksWithoutModifications(): | 57 if not file.worksWithoutModifications(): |
| 58 print files[file].path | 58 print file.path |
| 59 raise SystemExit(file.path + " does not compile at all") | 59 raise SystemExit(file.path + " does not compile at all") |
| 60 | 60 |
| 61 for file in files: | 61 for file in files: |
| 62 removable = file.removeRemovableIncludes() | 62 removable = file.removeRemovableIncludes() |
| 63 if removable: | 63 if removable: |
