| OLD | NEW |
| 1 #!/usr/bin/env python |
| 1 # Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 2 # Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
| 2 # for details. All rights reserved. Use of this source code is governed by a | 3 # for details. All rights reserved. Use of this source code is governed by a |
| 3 # BSD-style license that can be found in the LICENSE file. | 4 # BSD-style license that can be found in the LICENSE file. |
| 4 # | 5 # |
| 5 # This python script creates a tar archive and a C++ source file which contains | 6 # This python script creates a tar archive and a C++ source file which contains |
| 6 # the tar archive as an array of bytes. | 7 # the tar archive as an array of bytes. |
| 7 | 8 |
| 8 import os | 9 import os |
| 9 import sys | 10 import sys |
| 10 from os.path import join, splitext | 11 from os.path import join, splitext |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 return 0 | 155 return 0 |
| 155 | 156 |
| 156 except Exception, inst: | 157 except Exception, inst: |
| 157 sys.stderr.write('create_resources.py exception\n') | 158 sys.stderr.write('create_resources.py exception\n') |
| 158 sys.stderr.write(str(inst)) | 159 sys.stderr.write(str(inst)) |
| 159 sys.stderr.write('\n') | 160 sys.stderr.write('\n') |
| 160 return -1 | 161 return -1 |
| 161 | 162 |
| 162 if __name__ == '__main__': | 163 if __name__ == '__main__': |
| 163 sys.exit(main(sys.argv)) | 164 sys.exit(main(sys.argv)) |
| OLD | NEW |