Skip to content

Commit 5b298ae

Browse files
committed
moving home_dir initialization below config checks in jupyter_config_dir
1 parent 66e16ca commit 5b298ae

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

jupyter_core/paths.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,13 @@ def jupyter_config_dir():
6262
"""
6363

6464
env = os.environ
65-
home_dir = get_home_dir()
66-
6765
if env.get('JUPYTER_NO_CONFIG'):
6866
return _mkdtemp_once('jupyter-clean-cfg')
6967

7068
if env.get('JUPYTER_CONFIG_DIR'):
7169
return env['JUPYTER_CONFIG_DIR']
7270

71+
home_dir = get_home_dir()
7372
return pjoin(home_dir, '.jupyter')
7473

7574

0 commit comments

Comments
 (0)