From caa7af00fea58cfbaf0d3d38ae64e8e43aac703c Mon Sep 17 00:00:00 2001 From: Ian Fischer Date: Tue, 8 Sep 2015 17:13:41 -0700 Subject: [PATCH] Make it possible to start a sky app in an arbitrary relative path, rather than requiring the dart file to be in the current directory. --- packages/flutter/lib/sky_tool | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/flutter/lib/sky_tool b/packages/flutter/lib/sky_tool index a7d4b7a265..1d5976ebc1 100755 --- a/packages/flutter/lib/sky_tool +++ b/packages/flutter/lib/sky_tool @@ -248,9 +248,7 @@ class StartSky(object): main_dart = os.path.join(project_or_path, 'lib', 'main.dart') missing_msg = 'Missing lib/main.dart in project: %s' % project_or_path else: - # FIXME: This assumes the path is at the root of the project! - # Instead we should walk up looking for a pubspec.yaml - sky_server_root = os.path.dirname(project_or_path) + sky_server_root = os.getcwd() main_dart = project_or_path missing_msg = '%s does not exist.' % main_dart