Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 '''Tool to determine inputs and outputs of a grit file. | 6 '''Tool to determine inputs and outputs of a grit file. |
| 7 ''' | 7 ''' |
| 8 | 8 |
| 9 import cProfile | |
|
Mark Mentovai
2011/05/16 16:42:54
Unneeded?
| |
| 9 import optparse | 10 import optparse |
| 10 import os | 11 import os |
| 11 import posixpath | 12 import posixpath |
| 12 import types | 13 import types |
| 13 import sys | 14 import sys |
| 14 from grit import grd_reader | 15 from grit import grd_reader |
| 15 from grit import util | 16 from grit import util |
| 16 | 17 |
| 17 | 18 |
| 18 def Outputs(filename, defines): | 19 def Outputs(filename, defines): |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 121 def main(argv): | 122 def main(argv): |
| 122 result = DoMain(argv[1:]) | 123 result = DoMain(argv[1:]) |
| 123 if result == None: | 124 if result == None: |
| 124 PrintUsage() | 125 PrintUsage() |
| 125 return 1 | 126 return 1 |
| 126 print result | 127 print result |
| 127 return 0 | 128 return 0 |
| 128 | 129 |
| 129 | 130 |
| 130 if __name__ == '__main__': | 131 if __name__ == '__main__': |
| 132 #cProfile.run('main(sys.argv)', 'grit_profile') | |
|
Mark Mentovai
2011/05/16 16:42:54
Unneeded? (Revert the changes in this file?)
| |
| 131 sys.exit(main(sys.argv)) | 133 sys.exit(main(sys.argv)) |
| OLD | NEW |