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

Method _get_project

handler.py:481–489  ·  view source on GitHub ↗
(self, args, silent=False)

Source from the content-addressed store, hash-verified

479 return self.do_build(args, debug=True)
480
481 def _get_project(self, args, silent=False):
482 c = self._get_config()
483 n = args.get('id')
484 for p in c['projects']:
485 if n == p['id']:
486 return c, p
487 if silent:
488 return c, None
489 raise RuntimeError('No project %s found' % n)
490
491 def _get_project_path(self, project):
492 return os.path.join(self._get_path(), 'project-%s' % project['id'])

Callers 3

do_updateMethod · 0.95
do_removeMethod · 0.95
do_buildMethod · 0.95

Calls 1

_get_configMethod · 0.80

Tested by

no test coverage detected