From 8133195296ed44303410bbbf913adb732dc68c00 2015-01-09 22:18:31 From: Min RK Date: 2015-01-09 22:18:31 Subject: [PATCH] path.sep --- diff --git a/IPython/html/nbextensions.py b/IPython/html/nbextensions.py index 81fcebb..0fdfd52 100644 --- a/IPython/html/nbextensions.py +++ b/IPython/html/nbextensions.py @@ -37,14 +37,14 @@ if os.name == 'nt': SYSTEM_NBEXTENSIONS_DIRS = [pjoin(programdata, 'jupyter', 'nbextensions')] prefixes = [] else: - prefixes = ['/usr/local', '/usr'] + prefixes = [os.path.sep + pjoin('usr', 'local'), os.path.sep + 'usr'] # add sys.prefix at the front if sys.prefix not in prefixes: prefixes.insert(0, sys.prefix) for prefix in prefixes: - nbext = os.path.join(prefix, 'share', 'jupyter', 'nbextensions') + nbext = pjoin(prefix, 'share', 'jupyter', 'nbextensions') if nbext not in SYSTEM_NBEXTENSIONS_DIRS: SYSTEM_NBEXTENSIONS_DIRS.append(nbext)