Skip to content

Commit

Permalink
Make it possible to start a sky app in an arbitrary relative path, ra…
Browse files Browse the repository at this point in the history
…ther than requiring the dart file to be in the current directory.
  • Loading branch information
iansf committed Sep 9, 2015
1 parent 6e58812 commit 5f65de1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sky/packages/sky/lib/sky_tool
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5f65de1

Please sign in to comment.