OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2014 The Chromium Authors. All rights reserved. | 2 # Copyright 2014 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 """Upload DM output PNG files and JSON summary to Google Storage.""" | 6 """Upload DM output PNG files and JSON summary to Google Storage.""" |
7 | 7 |
8 import datetime | 8 import datetime |
9 import json | 9 import json |
10 import os | 10 import os |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 | 89 |
90 # Just for hygiene, put dm.json and verbose.log back. | 90 # Just for hygiene, put dm.json and verbose.log back. |
91 shutil.move(os.path.join(tmp, 'dm.json'), | 91 shutil.move(os.path.join(tmp, 'dm.json'), |
92 os.path.join(dm_dir, 'dm.json')) | 92 os.path.join(dm_dir, 'dm.json')) |
93 shutil.move(os.path.join(tmp, 'verbose.log'), | 93 shutil.move(os.path.join(tmp, 'verbose.log'), |
94 os.path.join(dm_dir, 'verbose.log')) | 94 os.path.join(dm_dir, 'verbose.log')) |
95 os.rmdir(tmp) | 95 os.rmdir(tmp) |
96 | 96 |
97 if '__main__' == __name__: | 97 if '__main__' == __name__: |
98 main(*sys.argv[1:]) | 98 main(*sys.argv[1:]) |
OLD | NEW |