Skip to content

Commit

Permalink
Fix bug opening browser from script
Browse files Browse the repository at this point in the history
  • Loading branch information
tbekolay authored and tcstewar committed Feb 26, 2020
1 parent 37db5d5 commit 0783d14
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Release History
0.4.6 (unreleased)
==================

- Bugfix: Failure when opening browser from script


0.4.5 (November 19, 2019)
Expand Down
4 changes: 2 additions & 2 deletions nengo_gui/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ def __init__(self, filename=None, model=None, locals=None, editor=True):

def start(self):
t = threading.Thread(
target=webbrowser.open,
args=str(self.server.get_url(token='one-time')))
target=webbrowser.open, args=(str(self.server.get_url(token="one-time")),)
)
t.start()

super(GUI, self).start()

0 comments on commit 0783d14

Please sign in to comment.