Skip to content

Commit c64b937

Browse files
committed
Change to pgadmin
1 parent ca669a7 commit c64b937

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/jupyter-pgadmin-proxy/__init__.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import shutil
44
import pwd
55
import getpass
6-
from jupyter_pgweb_proxy.jupyter_config import config
6+
from jupyter-pgadmin-proxy.jupyter_config import config
77

88

99
def _get_env(port, base_url):
@@ -19,14 +19,14 @@ def _get_env(port, base_url):
1919
"""
2020

2121
return {
22-
"PGWEB_RUN_PORT": str(port),
23-
"PGWEB_URL_PREFIX": f"{base_url}pgweb/".lstrip("/"),
22+
"PGADMIN_RUN_PORT": str(port),
23+
"PGADMIN_URL_PREFIX": f"{base_url}pgadmin/".lstrip("/"),
2424
}
2525

2626

2727
def get_icon_path():
2828
return os.path.join(
29-
os.path.dirname(os.path.abspath(__file__)), "pgweb.svg"
29+
os.path.dirname(os.path.abspath(__file__)), "pgadmin.svg"
3030
)
3131

3232

@@ -52,15 +52,15 @@ def run_app():
5252
"""
5353

5454
logging.basicConfig(level="INFO")
55-
logger = logging.getLogger("pgweb")
55+
logger = logging.getLogger("pgadmin")
5656
logger.setLevel("INFO")
57-
logger.info("Initializing Jupyter pgweb Proxy")
57+
logger.info("Initializing Jupyter pgadmin Proxy")
5858

5959
icon_path = get_icon_path()
6060
try:
61-
executable_name = shutil.which("pgweb")
61+
executable_name = shutil.which("pgadmin")
6262
except Exception:
63-
executable_name = "pgweb"
63+
executable_name = "pgadmin"
6464
host = "127.0.0.1"
6565
user = get_system_user()
6666
logger.debug(f"[{user}] Icon_path: {icon_path}")
@@ -78,7 +78,7 @@ def run_app():
7878
"absolute_url": True,
7979
# "rewrite_response": rewrite_netloc,
8080
"launcher_entry": {
81-
"title": "pgweb",
81+
"title": "pgadmin",
8282
"icon_path": icon_path
8383
},
84-
}
84+
}

0 commit comments

Comments
 (0)