Don't output the startup message in Desktop mode as it hangs the runtime

on Windows.
This commit is contained in:
Dave Page 2016-06-16 17:13:32 +01:00
parent 73988bcece
commit bc16a1a61f

View File

@ -70,9 +70,10 @@ else:
config.DEFAULT_SERVER_PORT)
server_port = config.DEFAULT_SERVER_PORT
print("Starting %s. Please navigate to http://localhost:%d in your browser." %
(config.APP_NAME, server_port))
sys.stdout.flush()
if config.SERVER_MODE == True:
print("Starting %s. Please navigate to http://localhost:%d in your browser." %
(config.APP_NAME, server_port))
sys.stdout.flush()
try:
app.run(