We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9694e2 commit 3f2ad16Copy full SHA for 3f2ad16
batchspawner/singleuser.py
@@ -1,6 +1,5 @@
1
import os
2
import sys
3
-
4
from runpy import run_path
5
from shutil import which
6
from urllib.parse import urlparse
@@ -39,9 +38,9 @@ def main(argv=None):
39
38
url = urlparse(os.environ.get("JUPYTERHUB_SERVICE_URL", ""))
40
# Updated URL. We are effectively passing the port arg via env var
41
if url.hostname:
42
- os.environ[
43
- "JUPYTERHUB_SERVICE_URL"
44
- ] = f"{url.scheme}://{url.hostname}:{port}{url.path}"
+ os.environ["JUPYTERHUB_SERVICE_URL"] = (
+ f"{url.scheme}://{url.hostname}:{port}{url.path}"
+ )
45
46
cmd_path = which(sys.argv[1])
47
sys.argv = sys.argv[1:]
0 commit comments