From 5b298aee31c88b50324ff9dcf38d7abc981ca72f Mon Sep 17 00:00:00 2001 From: Stephanie Stattel Date: Tue, 15 Feb 2022 13:32:37 -0800 Subject: [PATCH] moving home_dir initialization below config checks in jupyter_config_dir --- jupyter_core/paths.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/jupyter_core/paths.py b/jupyter_core/paths.py index 523f4a5..9e6ffea 100644 --- a/jupyter_core/paths.py +++ b/jupyter_core/paths.py @@ -62,14 +62,13 @@ def jupyter_config_dir(): """ env = os.environ - home_dir = get_home_dir() - if env.get('JUPYTER_NO_CONFIG'): return _mkdtemp_once('jupyter-clean-cfg') if env.get('JUPYTER_CONFIG_DIR'): return env['JUPYTER_CONFIG_DIR'] + home_dir = get_home_dir() return pjoin(home_dir, '.jupyter')