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

Side by Side Diff: infra/bots/assets/skimage/create.py

Issue 2155163002: Convert SK Images to new assets format (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Remove more stuff Created 4 years, 5 months 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
« no previous file with comments | « infra/bots/assets/skimage/common.py ('k') | infra/bots/assets/skimage/create_and_upload.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 """Create the asset."""
10
11
12 import argparse
13 import common
14 from assets import asset_utils
15
16
17 def create_asset(target_dir):
18 """Create the asset."""
19 # The common case is to add one or more images to the existing set. Therefore,
20 # download the previous version first.
21 asset = asset_utils.Asset(common.ASSET_NAME, asset_utils.MultiStore())
22 asset.download_current_version(target_dir)
23
24 # Allow the user to modify the contents of the target dir.
25 raw_input('Previous SKImage contents have been downloaded. Please make '
26 'your desired changes in the following directory and press enter '
27 'to continue:\n%s' % target_dir)
28
29
30 def main():
31 parser = argparse.ArgumentParser()
32 parser.add_argument('--target_dir', '-t', required=True)
33 args = parser.parse_args()
34 create_asset(args.target_dir)
35
36
37 if __name__ == '__main__':
38 main()
OLDNEW
« no previous file with comments | « infra/bots/assets/skimage/common.py ('k') | infra/bots/assets/skimage/create_and_upload.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698