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

Method _get_project

handler8.py:448–456  ·  view source on GitHub ↗
(self, args, silent=False)

Source from the content-addressed store, hash-verified

446 return self.do_build(args, debug=True)
447
448 def _get_project(self, args, silent=False):
449 c = self._get_config()
450 n = args.get('id')
451 for p in c['projects']:
452 if n == p['id']:
453 return c, p
454 if silent:
455 return c, None
456 raise RuntimeError('No project %s found' % n)
457
458 def _get_project_path(self, project):
459 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