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

Function sort_plugins

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

Source from the content-addressed store, hash-verified

80 return rst
81
82def sort_plugins(catlog, lst):
83 rst = []
84 for i in catlog:
85 if i=='-':rst.append('-')
86 for j in lst:
87 if j[:-3]==i or j[:-4]==i or j[0].title==i:
88 lst.remove(j)
89 rst.append(j)
90 rst.extend(lst)
91 return rst
92
93def build_plugins(path, err=False):
94 root = err in (True, False)

Callers 1

build_pluginsFunction · 0.85

Calls 2

appendMethod · 0.80
removeMethod · 0.45

Tested by

no test coverage detected