| OLD | NEW |
| (Empty) |
| 1 #!/usr/bin/env python | |
| 2 # | |
| 3 # Copyright 2016 Google Inc. | |
| 4 # | |
| 5 # Use of this source code is governed by a BSD-style license that can be | |
| 6 # found in the LICENSE file. | |
| 7 | |
| 8 | |
| 9 import common | |
| 10 import os | |
| 11 import sys | |
| 12 | |
| 13 | |
| 14 def main(): | |
| 15 if len(sys.argv) != 1: | |
| 16 print >> sys.stderr, 'Usage: download_images.py' | |
| 17 sys.exit(1) | |
| 18 skia_dir = os.path.abspath(os.path.join( | |
| 19 os.path.dirname(os.path.realpath(__file__)), | |
| 20 os.pardir, os.pardir)) | |
| 21 dst_dir = os.path.join(skia_dir, os.pardir, 'images') | |
| 22 tmp_dir = os.path.join(skia_dir, os.pardir, 'tmp') | |
| 23 common.download_dir(skia_dir, tmp_dir, common.VERSION_FILE_SK_IMAGE, | |
| 24 common.GS_SUBDIR_TMPL_SK_IMAGE, dst_dir) | |
| 25 | |
| 26 | |
| 27 if __name__ == '__main__': | |
| 28 main() | |
| OLD | NEW |