18ENV_VAR =
'ANDROID_SDK_LINUX_SDK_ROOT'
22 val = os.environ.get(key)
24 print((
'Environment variable %s not set; you should run this via '
25 'create_and_upload.py.' % key), file=sys.stderr)
31 """Create the asset."""
32 dst = os.path.join(target_dir,
'android-sdk')
33 shutil.copytree(android_sdk_root, dst)
37 parser = argparse.ArgumentParser()
38 parser.add_argument(
'--target_dir',
'-t', required=
True)
39 args = parser.parse_args()
40 android_sdk_root =
getenv(ENV_VAR)
44if __name__ ==
'__main__':
def create_asset(target_dir, android_sdk_root)
def print(*args, **kwargs)