Commit 8fa319a3 authored by Ian Fischer's avatar Ian Fischer

Merge pull request #891 from iansf/reorder_listen

Start "sky_tool listen" with a refresh
parents 91a72d9f fdaea8b7
......@@ -621,10 +621,6 @@ class StartListening(object):
tempdir = tempfile.mkdtemp()
currdir = os.getcwd()
while True:
# Watch filesystem for changes
if not self.watch_dir(currdir):
return
logging.info('Updating running Sky apps...')
# Restart the app on Android. Android does not currently restart using skyx files.
......@@ -679,6 +675,10 @@ class StartListening(object):
if IOSDevice.is_connected():
IOSDevice.copy_file(SKY_SHELL_APP_ID, os.path.join(tempdir, 'app.skyx'), 'Documents/app.skyx')
# Watch filesystem for changes
if not self.watch_dir(currdir):
return
class StartTracing(object):
def add_subparser(self, subparsers):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment