MCPcopy Create free account
hub / github.com/runhey/OnmyojiAutoScript / run

Method run

module/gui/process/script_process.py:37–51  ·  view source on GitHub ↗

run :return:

(self)

Source from the content-addressed store, hash-verified

35 return self.is_alive()
36
37 def run(self) -> None:
38 """
39 run
40 :return:
41 """
42 self.start_log()
43 try:
44 from script import Script
45 script = Script(config_name=self.config)
46 script.gui_update_task = self.update_tasks
47 script.init_server(self.port)
48 script.run_server()
49 except:
50 logger.exception(f'run script {self.config} error')
51 raise
52
53 def stop(self) -> None:
54 """

Callers

nothing calls this directly

Calls 4

start_logMethod · 0.95
init_serverMethod · 0.95
run_serverMethod · 0.95
ScriptClass · 0.90

Tested by

no test coverage detected