| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # | 2 # |
| 3 # Copyright (C) 2011 Google Inc. All rights reserved. | 3 # Copyright (C) 2011 Google Inc. All rights reserved. |
| 4 # | 4 # |
| 5 # Redistribution and use in source and binary forms, with or without | 5 # Redistribution and use in source and binary forms, with or without |
| 6 # modification, are permitted provided that the following conditions are | 6 # modification, are permitted provided that the following conditions are |
| 7 # met: | 7 # met: |
| 8 # | 8 # |
| 9 # * Redistributions of source code must retain the above copyright | 9 # * Redistributions of source code must retain the above copyright |
| 10 # notice, this list of conditions and the following disclaimer. | 10 # notice, this list of conditions and the following disclaimer. |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 shutil.copy(path.join(dirname, filename), | 162 shutil.copy(path.join(dirname, filename), |
| 163 path.join(output_directory, 'Images')) | 163 path.join(output_directory, 'Images')) |
| 164 add_file_to_grd(doc, path.join('Images', filename)) | 164 add_file_to_grd(doc, path.join('Images', filename)) |
| 165 | 165 |
| 166 with open(parsed_args.output_filename, 'w') as output_file: | 166 with open(parsed_args.output_filename, 'w') as output_file: |
| 167 output_file.write(doc.toxml(encoding='UTF-8')) | 167 output_file.write(doc.toxml(encoding='UTF-8')) |
| 168 | 168 |
| 169 | 169 |
| 170 if __name__ == '__main__': | 170 if __name__ == '__main__': |
| 171 sys.exit(main(sys.argv)) | 171 sys.exit(main(sys.argv)) |
| OLD | NEW |