Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: third_party/WebKit/Source/devtools/scripts/build/generate_devtools_grd.py

Issue 2441163002: DevTools: clean up scripts folder (Closed)
Patch Set: Fix sys.path for chromevox to load rjsmin Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698