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

Unified Diff: infra/bots/assets/svg/create_and_upload.py

Issue 2346663003: Add ability to create and upload SVGs from a local dir (Closed)
Patch Set: Fix default Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « infra/bots/assets/svg/create.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: infra/bots/assets/svg/create_and_upload.py
diff --git a/infra/bots/assets/svg/create_and_upload.py b/infra/bots/assets/svg/create_and_upload.py
index 13564474771e8f5eac2e271bd7d39a9628da1681..2075979b863c0c1bcda7ee10654a258bcb71bfe6 100755
--- a/infra/bots/assets/svg/create_and_upload.py
+++ b/infra/bots/assets/svg/create_and_upload.py
@@ -19,6 +19,9 @@ import utils
def main():
parser = argparse.ArgumentParser()
+ parser.add_argument(
+ '--local_svgs_dir', '-l', default='',
+ help='Directory containing additional SVGs we want to upload.')
parser.add_argument('--gsutil')
args = parser.parse_args()
@@ -28,7 +31,9 @@ def main():
upload_script = os.path.join(common.FILE_DIR, 'upload.py')
try:
- subprocess.check_call(['python', create_script, '-t', cwd])
+ subprocess.check_call(['python', create_script,
+ '-t', cwd,
+ '-l', args.local_svgs_dir])
cmd = ['python', upload_script, '-t', cwd]
if args.gsutil:
cmd.extend(['--gsutil', args.gsutil])
« no previous file with comments | « infra/bots/assets/svg/create.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698