Skip to content

Commit

Permalink
moving home_dir initialization below config checks in jupyter_config_dir
Browse files Browse the repository at this point in the history
  • Loading branch information
dharmaquark committed Feb 15, 2022
1 parent 66e16ca commit 5b298ae
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions jupyter_core/paths.py
Expand Up @@ -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')


Expand Down

0 comments on commit 5b298ae

Please sign in to comment.