Decorator to extend a export. The decorated function is used to extend the export specified by the given name.
(requirement)
| 150 | |
| 151 | |
| 152 | def extend(requirement): |
| 153 | ''' Decorator to extend a export. |
| 154 | |
| 155 | The decorated function is used to extend the export specified by the given |
| 156 | name. |
| 157 | ''' |
| 158 | |
| 159 | def wrapper(func): |
| 160 | Export.load(requirement).extend(extend = func) |
| 161 | |
| 162 | return wrapper |