(self, project, name, ps, sources)
| 22 | class NotfileGenerator(generators.Generator): |
| 23 | |
| 24 | def run(self, project, name, ps, sources): |
| 25 | pass |
| 26 | action_name = ps.get('action')[0] |
| 27 | if action_name[0] == '@': |
| 28 | action = virtual_target.Action(get_manager(), sources, action_name[1:], ps) |
| 29 | else: |
| 30 | action = virtual_target.Action(get_manager(), sources, "notfile.run", ps) |
| 31 | |
| 32 | return [get_manager().virtual_targets().register( |
| 33 | virtual_target.NotFileTarget(name, project, action))] |
| 34 | |
| 35 | generators.register(NotfileGenerator("notfile.main", False, [], ["NOTFILE_MAIN"])) |
| 36 |
nothing calls this directly
no test coverage detected