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

Method do_register

handler.py:116–126  ·  view source on GitHub ↗
(self, regfile)

Source from the content-addressed store, hash-verified

114 }
115
116 def do_register(self, regfile):
117 if not regfile:
118 for regfile in glob.glob('pyarmor-regfile*.zip'):
119 break
120 if regfile.endswith('.zip'):
121 self._check_arg('file', regfile)
122 self._check_path(regfile)
123 regfile = os.path.expandvars(regfile).replace('\\', '/')
124 cmd_args = ['register', regfile]
125 call_pyarmor(cmd_args)
126 return self.do_version()
127
128
129class DirectoryHandler(BaseHandler):

Callers

nothing calls this directly

Calls 4

do_versionMethod · 0.95
_check_argMethod · 0.80
_check_pathMethod · 0.80
call_pyarmorFunction · 0.70

Tested by

no test coverage detected