From 06eb580de6b7787da4303053fc97252376b58e69 Mon Sep 17 00:00:00 2001 From: Ian Fischer Date: Fri, 7 Aug 2015 13:53:32 -0700 Subject: [PATCH] Add the ability to specify a path to the build directory to support using sky_tool with local builds. --- sky/packages/sky/lib/sky_tool | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sky/packages/sky/lib/sky_tool b/sky/packages/sky/lib/sky_tool index 994f169ceff56..2d3ad691c9d6d 100755 --- a/sky/packages/sky/lib/sky_tool +++ b/sky/packages/sky/lib/sky_tool @@ -128,6 +128,7 @@ class StartSky(object): start_parser.add_argument('--install', action='store_true') start_parser.add_argument('--poke', action='store_true') start_parser.add_argument('--checked', action='store_true') + start_parser.add_argument('--build_path', type=str) start_parser.add_argument('project_or_path', nargs='?', type=str, default='.') start_parser.set_defaults(func=self.run) @@ -178,7 +179,10 @@ class StartSky(object): "exist to locate %s." \ % (os.path.basename(__file__), APK_NAME)) return 2 - apk_path = os.path.join(APK_DIR, APK_NAME) + if args.build_path is not None: + apk_path = os.path.join(args.build_path, 'apks', APK_NAME) + else: + apk_path = os.path.join(APK_DIR, APK_NAME) if not os.path.exists(apk_path): logging.error("'%s' does not exist?" % apk_path) return 2