9"""Create the asset and upload it."""
17FILE_DIR = os.path.dirname(os.path.abspath(__file__))
18INFRA_BOTS_DIR = os.path.realpath(os.path.join(FILE_DIR, os.pardir, os.pardir))
19sys.path.insert(0, INFRA_BOTS_DIR)
24 parser = argparse.ArgumentParser()
25 parser.add_argument(
'--gsutil')
26 args = parser.parse_args()
30 create_script = os.path.join(FILE_DIR,
'create.py')
31 upload_script = os.path.join(FILE_DIR,
'upload.py')
34 subprocess.check_call([
'python', create_script,
'-t', cwd])
35 cmd = [
'python', upload_script,
'-t', cwd]
37 cmd.extend([
'--gsutil', args.gsutil])
38 subprocess.check_call(cmd)
39 except subprocess.CalledProcessError:
44if __name__ ==
'__main__':