MCPcopy Create free account
hub / github.com/Image-Py/imagepy / sort_tools

Function sort_tools

imagepy/core/loader/loader.py:150–159  ·  view source on GitHub ↗
(catlog, lst)

Source from the content-addressed store, hash-verified

148 return rst
149
150def sort_tools(catlog, lst):
151 rst = []
152 for i in catlog:
153 if i=='-':rst.append('-')
154 for j in lst:
155 if j==i or j[0].title==i or j[:-3]==i:
156 lst.remove(j)
157 rst.append(j)
158 rst.extend(lst)
159 return rst
160
161def build_tools(path, err=False):
162 root = err in (True, False)

Callers 1

build_toolsFunction · 0.85

Calls 2

appendMethod · 0.80
removeMethod · 0.45

Tested by

no test coverage detected