Skip to content

Commit

Permalink
Merge pull request #251 from dharmaquark/0222-config-dir
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 authored Feb 15, 2022
2 parents 66e16ca + 5b298ae commit 5f02097
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions jupyter_core/paths.py
Original file line number Diff line number Diff line change
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 5f02097

Please sign in to comment.