##// END OF EJS Templates
path.sep
Min RK -
Show More
@@ -37,14 +37,14 b" if os.name == 'nt':"
37 SYSTEM_NBEXTENSIONS_DIRS = [pjoin(programdata, 'jupyter', 'nbextensions')]
37 SYSTEM_NBEXTENSIONS_DIRS = [pjoin(programdata, 'jupyter', 'nbextensions')]
38 prefixes = []
38 prefixes = []
39 else:
39 else:
40 prefixes = ['/usr/local', '/usr']
40 prefixes = [os.path.sep + pjoin('usr', 'local'), os.path.sep + 'usr']
41
41
42 # add sys.prefix at the front
42 # add sys.prefix at the front
43 if sys.prefix not in prefixes:
43 if sys.prefix not in prefixes:
44 prefixes.insert(0, sys.prefix)
44 prefixes.insert(0, sys.prefix)
45
45
46 for prefix in prefixes:
46 for prefix in prefixes:
47 nbext = os.path.join(prefix, 'share', 'jupyter', 'nbextensions')
47 nbext = pjoin(prefix, 'share', 'jupyter', 'nbextensions')
48 if nbext not in SYSTEM_NBEXTENSIONS_DIRS:
48 if nbext not in SYSTEM_NBEXTENSIONS_DIRS:
49 SYSTEM_NBEXTENSIONS_DIRS.append(nbext)
49 SYSTEM_NBEXTENSIONS_DIRS.append(nbext)
50
50
General Comments 0
You need to be logged in to leave comments. Login now