24 parser = argparse.ArgumentParser()
25 parser.add_argument('--gsutil')
26 args = parser.parse_args()
27
29 cwd = os.getcwd()
30 create_script = os.path.join(FILE_DIR, 'create.py')
31 upload_script = os.path.join(FILE_DIR, 'upload.py')
32
33 try:
34 subprocess.check_call(['python', create_script, '-t', cwd])
35 cmd = ['python', upload_script, '-t', cwd]
36 if args.gsutil:
37 cmd.extend(['--gsutil', args.gsutil])
38 subprocess.check_call(cmd)
39 except subprocess.CalledProcessError:
40
41 sys.exit(1)
42
43