a7a6f2e01d
This enables running DM through Swarming. NOTRY=true BUG=skia:4763 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1743113003 Review URL: https://codereview.chromium.org/1743113003
29 lines
692 B
Python
29 lines
692 B
Python
#!/usr/bin/env python
|
|
#
|
|
# Copyright 2016 Google Inc.
|
|
#
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
|
|
import common
|
|
import os
|
|
import sys
|
|
|
|
|
|
def main():
|
|
if len(sys.argv) != 1:
|
|
print >> sys.stderr, 'Usage: download_skps.py'
|
|
sys.exit(1)
|
|
skia_dir = os.path.abspath(os.path.join(
|
|
os.path.dirname(os.path.realpath(__file__)),
|
|
os.pardir, os.pardir))
|
|
dst_dir = os.path.join(skia_dir, os.pardir, 'skps')
|
|
tmp_dir = os.path.join(skia_dir, os.pardir, 'tmp')
|
|
common.download_dir(skia_dir, tmp_dir, common.VERSION_FILE_SKP,
|
|
common.GS_SUBDIR_TMPL_SKP, dst_dir)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main()
|