skia2/infra/bots/assets/ios-dev-image-13.4/common.py
Ben Wagner ca2bb0f4eb [infra] Add iOS 13.4
Change-Id: I21ab46d77e8ebcc3b6a57cf2ed73f236cd103c5a
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/292260
Reviewed-by: Joe Gregorio <jcgregorio@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
2020-05-27 18:47:38 +00:00

27 lines
589 B
Python
Executable File

#!/usr/bin/env python
#
# Copyright 2017 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Common vars used by scripts in this directory."""
import os
import sys
FILE_DIR = os.path.dirname(os.path.abspath(__file__))
INFRA_BOTS_DIR = os.path.realpath(os.path.join(FILE_DIR, os.pardir, os.pardir))
sys.path.insert(0, INFRA_BOTS_DIR)
from assets import assets
ASSET_NAME = os.path.basename(FILE_DIR)
def run(cmd):
"""Run a command, eg. "upload" or "download". """
assets.main([cmd, ASSET_NAME] + sys.argv[1:])