Invoke a command function with a list of string arguments within a command context, mimicking the actual command environment.
(self, func, *args)
| 75 | return sc.addons[0] if sc.addons else None |
| 76 | |
| 77 | def command(self, func, *args): |
| 78 | """ |
| 79 | Invoke a command function with a list of string arguments within a command context, mimicking the actual command environment. |
| 80 | """ |
| 81 | cmd = command.Command(self.master.commands, "test.command", func) |
| 82 | return cmd.call(args) |