File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010"""This is the main application entry point for pgAdmin 4. If running on
1111a webserver, this will provide the WSGI interface, otherwise, we're going
1212to start a web server."""
13+
1314
1415import sys
1516if sys .version_info <= (3 , 9 ):
2122import builtins
2223import os
2324
25+ ##
26+ import webbrowser
27+
2428# We need to include the root directory in sys.path to ensure that we can
2529# find everything we need when running in the standalone runtime.
2630if sys .path [0 ] != os .path .dirname (os .path .realpath (__file__ )):
@@ -173,6 +177,7 @@ def main():
173177 config .EFFECTIVE_SERVER_PORT )
174178 )
175179 sys .stdout .flush ()
180+ webbrowser .open (f"http://{ config .DEFAULT_SERVER } :{ config .EFFECTIVE_SERVER_PORT } " )
176181 else :
177182 # For unknown reason the runtime does not pass the environment
178183 # variables (i.e. PYTHONHOME, and PYTHONPATH), to the Python
You can’t perform that action at this time.
0 commit comments