Skip to content

Commit

Permalink
TST: re-try with asynchronous=True
Browse files Browse the repository at this point in the history
  • Loading branch information
dhomeier committed May 20, 2022
1 parent 7783e4a commit eb521bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions glue_wwt/viewer/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ def activate(self):
if not filename.endswith('.wtt'):
filename = filename + '.wtt'

self.viewer._wwt.widget.page.runJavaScript("tourxml = '';")
tourxml = self.viewer._wwt.widget.page.runJavaScript('tourxml;')
self.viewer._wwt.widget.page.runJavaScript("tourxml = '';", asynchronous=False)
tourxml = self.viewer._wwt.widget.page.runJavaScript('tourxml;', asynchronous=False)

self.viewer._wwt.widget.page.runJavaScript(SAVE_TOUR_CODE)

Expand All @@ -93,7 +93,7 @@ def activate(self):
while time.time() - start < 10:
time.sleep(0.1)
app.processEvents()
tourxml = self.viewer._wwt.widget.page.runJavaScript('tourxml;')
tourxml = self.viewer._wwt.widget.page.runJavaScript('tourxml;', asynchronous=False)
if tourxml:
break

Expand Down

0 comments on commit eb521bc

Please sign in to comment.