Skip to content

Commit 5f02097

Browse files
authored
Merge pull request #251 from dharmaquark/0222-config-dir
2 parents 66e16ca + 5b298ae commit 5f02097

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)