From bc16a1a61f603e616075846a540cf290ac8fcbbe Mon Sep 17 00:00:00 2001 From: Dave Page Date: Thu, 16 Jun 2016 17:13:32 +0100 Subject: [PATCH] Don't output the startup message in Desktop mode as it hangs the runtime on Windows. --- web/pgAdmin4.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/web/pgAdmin4.py b/web/pgAdmin4.py index 2b1a4302a..279276ba9 100644 --- a/web/pgAdmin4.py +++ b/web/pgAdmin4.py @@ -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(