(self, name, args)
| 36 | @register(name=name, inputs=inputs, outputs=outputs, exclusive=exclusive) |
| 37 | class Node: |
| 38 | def __init__(self, name, args): |
| 39 | self.context = Context(**args) |
| 40 | self.name = name |
| 41 | if with_context: |
| 42 | self.impl = partial(func, context = self.context) |
| 43 | else: |
| 44 | self.impl = func |
| 45 | |
| 46 | def exec(self): |
| 47 | plugin_def(self, self.impl) |