Skip to content

Commit

Permalink
Merge pull request #139 from jhgoebbert/master
Browse files Browse the repository at this point in the history
Enable system-wide installations of Jupyter possible at any path
  • Loading branch information
minrk committed Oct 18, 2018
2 parents c8c3552 + aac9952 commit 51185b8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions jupyter_core/paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,14 @@ def jupyter_config_path():
if os.environ.get('JUPYTER_NO_CONFIG'):
return paths

# highest priority is env
if os.environ.get('JUPYTER_CONFIG_PATH'):
paths.extend(
p.rstrip(os.sep)
for p in os.environ['JUPYTER_CONFIG_PATH'].split(os.pathsep)
)

# then sys.prefix
for p in ENV_CONFIG_PATH:
if p not in SYSTEM_CONFIG_PATH:
paths.append(p)
Expand Down

0 comments on commit 51185b8

Please sign in to comment.