##// END OF EJS Templates
Rename list_kernel_specs to find_kernel_specs
Thomas Kluyver -
Show More
@@ -89,7 +89,7 b' def _make_native_kernel_dir():'
89 # TODO: Copy icons into directory
89 # TODO: Copy icons into directory
90 return path
90 return path
91
91
92 def list_kernel_specs():
92 def find_kernel_specs():
93 """Returns a dict mapping kernel names to resource directories."""
93 """Returns a dict mapping kernel names to resource directories."""
94 d = {}
94 d = {}
95 for kernel_dir in kernel_dirs:
95 for kernel_dir in kernel_dirs:
@@ -107,6 +107,6 b' def get_kernel_spec(kernel_name):'
107 """
107 """
108 if kernel_name == 'native':
108 if kernel_name == 'native':
109 kernel_name = NATIVE_KERNEL_NAME
109 kernel_name = NATIVE_KERNEL_NAME
110 d = list_kernel_specs()
110 d = find_kernel_specs()
111 resource_dir = d[kernel_name.lower()]
111 resource_dir = d[kernel_name.lower()]
112 return KernelSpec.from_resource_dir(resource_dir) No newline at end of file
112 return KernelSpec.from_resource_dir(resource_dir)
General Comments 0
You need to be logged in to leave comments. Login now