Skip to content

Commit

Permalink
feat: frozen parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
severinsimmler committed Nov 25, 2018
1 parent c8f6f7a commit 62793ab
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion topicsexplorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,16 @@
parser.add_argument("--browser",
action="store_true",
help="Use this parameter to open the UI in your default web browser.")
parser.add_argument("--frozen",
action="store_true",
help="Simulate a frozen application.")

args = parser.parse_args()

if args.browser:
webbrowser.open("http://localhost:5000/")
application.views.web.run()
elif getattr(sys, "frozen", False):
elif getattr(sys, "frozen", False) or args.frozen:
application.views.web.run()
else:
application.gui.run()

0 comments on commit 62793ab

Please sign in to comment.