MCPcopy Create free account
hub / github.com/NetSys/bess / find_current_plugins

Function find_current_plugins

container_build.py:129–139  ·  view source on GitHub ↗

return list of existing plugins

()

Source from the content-addressed store, hash-verified

127
128
129def find_current_plugins():
130 "return list of existing plugins"
131 result = []
132 try:
133 for line in open('core/extra.mk').readlines():
134 match = re.match(r'PLUGINS \+= (.*)', line)
135 if match:
136 result.append(match.group(1))
137 except (OSError, IOError):
138 pass
139 return result
140
141
142def build_bess():

Callers 1

mainFunction · 0.70

Calls 2

matchMethod · 0.80
appendMethod · 0.80

Tested by

no test coverage detected