MCPcopy Index your code
hub / github.com/dashingsoft/pyarmor-webui / _build_temp

Method _build_temp

handler.py:380–399  ·  view source on GitHub ↗
(self, args, debug=False)

Source from the content-addressed store, hash-verified

378 return output
379
380 def _build_temp(self, args, debug=False):
381 data = self._build_data(args)
382
383 name = 'project-%s' % self.temp_id
384 path = os.path.join(self._get_path(), name)
385
386 if os.path.exists(path):
387 shutil.rmtree(path)
388 os.mkdir(path)
389
390 cmd_args = ['init', '--src', data['src'], path]
391 call_pyarmor(cmd_args)
392
393 project = Project()
394 project.open(path)
395
396 project._update(data)
397 project.save(path)
398
399 return self._build_target(path, args, debug=debug)
400
401 def do_new(self, args):
402 c = self._get_config()

Callers 1

do_buildMethod · 0.95

Calls 4

_build_dataMethod · 0.95
_build_targetMethod · 0.95
_get_pathMethod · 0.80
call_pyarmorFunction · 0.70

Tested by

no test coverage detected