From faa1b6b1136b4708fde0a94e1fb6aa73df124d4b Mon Sep 17 00:00:00 2001 From: sebranchett Date: Wed, 15 Nov 2023 10:09:22 +0100 Subject: [PATCH] don't overwrite single user PATH --- hub_docker/jupyterhub_config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hub_docker/jupyterhub_config.py b/hub_docker/jupyterhub_config.py index aeaa964..54be41d 100644 --- a/hub_docker/jupyterhub_config.py +++ b/hub_docker/jupyterhub_config.py @@ -105,7 +105,8 @@ { 'name': name, 'value': value, - } for name, value in spawner.get_env().items() + } for name, value in + ([n, v] for [n, v] in spawner.get_env().items() if n != 'PATH') ], 'name': os.environ.get('FARGATE_SPAWNER_CONTAINER_NAME') }],