MCPcopy Create free account
hub / github.com/dashingsoft/pyarmor-webui / do_new

Method do_new

handler.py:592–607  ·  view source on GitHub ↗
(self, args)

Source from the content-addressed store, hash-verified

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
610if __name__ == '__main__':

Callers

nothing calls this directly

Calls 3

_format_pathMethod · 0.80
_get_pathMethod · 0.80
call_pyarmorFunction · 0.70

Tested by

no test coverage detected