Merge pull request #891 from iansf/reorder_listen
Start "sky_tool listen" with a refresh
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user