@@ -18,6 +18,7 @@
1818#
1919
2020import logging
21+import time
2122
2223from unity8.shell import emulators
2324
@@ -67,7 +68,9 @@ class Dash(emulators.UnityEmulatorBase):
6768
6869 """
6970 scope_loader = self._get_scope_loader(scope_id)
71+ print "open_scope", scope_id, scope_loader
7072 if scope_loader.isCurrent:
73+ print "scope_loader.isCurrent"
7174 logger.info('The scope is already open.')
7275 return self._get_scope_from_loader(scope_loader)
7376 else:
@@ -82,6 +85,12 @@ class Dash(emulators.UnityEmulatorBase):
8285 'No scope found with id {0}'.format(scope_id))
8386
8487 def _get_scope_from_loader(self, loader):
88+ print "_get_scope_from_loader", loader, loader.isCurrent, loader.isLoaded, loader.get_children()
89+ i = 0
90+ time.sleep(1)
91+ while len(loader.get_children()) < 1 and i < 5:
92+ time.sleep(1)
93+ i = i + 1
8594 return loader.get_children()[0]
8695
8796 def _open_scope_scrolling(self, scope_loader):