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 |
|
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 = |
|
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