OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 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 """A utility script that can extract and edit resources in a Windows binary. | 6 """A utility script that can extract and edit resources in a Windows binary. |
7 | 7 |
8 For detailed help, see the script's usage by invoking it with --help.""" | 8 For detailed help, see the script's usage by invoking it with --help.""" |
9 | 9 |
10 import ctypes | 10 import ctypes |
11 import ctypes.wintypes | 11 import ctypes.wintypes |
12 import logging | 12 import logging |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 | 311 |
312 for res_type, res_lang, res_name, src_file in options.update: | 312 for res_type, res_lang, res_name, src_file in options.update: |
313 editor.UpdateResource(res_type, int(res_lang), res_name, src_file) | 313 editor.UpdateResource(res_type, int(res_lang), res_name, src_file) |
314 | 314 |
315 if editor.modified: | 315 if editor.modified: |
316 editor.Commit() | 316 editor.Commit() |
317 | 317 |
318 | 318 |
319 if __name__ == '__main__': | 319 if __name__ == '__main__': |
320 sys.exit(main(*_ParseArgs())) | 320 sys.exit(main(*_ParseArgs())) |
OLD | NEW |