File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -12,14 +12,14 @@ def serve(args):
1212 except ImportError as e :
1313 raise RuntimeError ('Waitress server is not installed' ) from e
1414
15- if args .browser :
16- scheme = args .url_scheme
17- host , port = args .host , args .port
18- prefix = args .url_prefix .strip ('/' )
19- if prefix :
20- prefix += '/'
21- url = f'{ scheme } ://{ host } :{ port } /{ prefix } '
15+ scheme = args .url_scheme
16+ host , port = args .host , args .port
17+ path = args .url_prefix .strip ('/' )
18+ if path :
19+ path = f'/{ path } /'
20+ url = f'{ scheme } ://{ host } :{ port } { path } '
2221
22+ if args .browser :
2323 import time
2424 import threading
2525 import webbrowser
@@ -87,7 +87,7 @@ def openBrowser():
8787 logger = logging .getLogger ('waitress' )
8888 logger .setLevel (logLevel )
8989
90- print ("Waitress serving Webware application... " )
90+ print (f "Waitress serving Webware application on { url } " )
9191 serve (application , ** args )
9292
9393
You can’t perform that action at this time.
0 commit comments