Skip to content

Commit

Permalink
Merge pull request #8 from minrk/never-empty-path
Browse files Browse the repository at this point in the history
ensure SYSTEM_JUPYTER_PATH is never empty
  • Loading branch information
Carreau committed May 1, 2015
2 parents 548b150 + 8bb49cd commit 39bc898
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jupyter_core/paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def jupyter_runtime_dir():
if programdata:
SYSTEM_JUPYTER_PATH = [pjoin(programdata, 'jupyter')]
else: # PROGRAMDATA is not defined by default on XP.
SYSTEM_JUPYTER_PATH = []
SYSTEM_JUPYTER_PATH = [os.path.join(sys.prefix, 'share', 'jupyter')]
else:
SYSTEM_JUPYTER_PATH = [
"/usr/local/share/jupyter",
Expand All @@ -108,6 +108,7 @@ def jupyter_runtime_dir():

ENV_JUPYTER_PATH = [os.path.join(sys.prefix, 'share', 'jupyter')]


def jupyter_path(*subdirs):
"""Return the list of directories to search
Expand Down

0 comments on commit 39bc898

Please sign in to comment.