return list of existing plugins
()
| 127 | |
| 128 | |
| 129 | def 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 | |
| 142 | def build_bess(): |