25 parser = argparse.ArgumentParser()
26 parser.add_argument('--src_dir', '-s', required=True)
27 args = parser.parse_args()
28
29
30 os.environ[create.ENV_VAR] = args.src_dir
31
32 sk = os.path.realpath(os.path.join(
33 FILE_DIR, os.pardir, os.pardir, os.pardir, os.pardir, 'bin', 'sk'))
34 if os.name == 'nt':
35 sk += '.exe'
36 if not os.path.isfile(sk):
37 raise Exception('`sk` not found at %s; maybe you need to run bin/fetch-sk?')
38
39
40 subprocess.check_call([sk, 'asset', 'upload', ASSET], cwd=FILE_DIR)
41
42