Skip to content

Commit

Permalink
Merge pull request flutter#505 from iansf/sky_tool_build_path
Browse files Browse the repository at this point in the history
Specify local build paths when using sky_tool.
  • Loading branch information
iansf committed Aug 7, 2015
2 parents 3f2fdba + 06eb580 commit d63f9be
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sky/packages/sky/lib/sky_tool
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d63f9be

Please sign in to comment.