(self, args, debug=False)
| 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() |
no test coverage detected