(self, args)
| 590 | self.name = 'runtime' |
| 591 | |
| 592 | def do_new(self, args): |
| 593 | cmd_args = ['runtime'] |
| 594 | output = self._format_path(args.get('output', self._get_path())) |
| 595 | cmd_args.extend(['--output', output]) |
| 596 | |
| 597 | for x in ('platform', 'mode', 'with_license'): |
| 598 | if x in args: |
| 599 | cmd_args.append('--%s' % x.replace('_', '-')) |
| 600 | v = args.get(x) |
| 601 | if v: |
| 602 | cmd_args.append(v) |
| 603 | |
| 604 | logging.info('Generate runtime package at %s', output) |
| 605 | call_pyarmor(cmd_args) |
| 606 | |
| 607 | return output |
| 608 | |
| 609 | |
| 610 | if __name__ == '__main__': |
nothing calls this directly
no test coverage detected