MCPcopy
hub / github.com/AirtestProject/Poco / console_run

Method console_run

poco/utils/simplerpc/simplerpc.py:206–219  ·  view source on GitHub ↗
(self, local_dict=None)

Source from the content-addressed store, hash-verified

204 _run()
205
206 def console_run(self, local_dict=None):
207 global BACKEND_UPDATE
208 BACKEND_UPDATE = True
209 self.run()
210 from code import InteractiveInterpreter
211 i = InteractiveInterpreter(local_dict)
212 while True:
213 prompt = ">>>"
214 try:
215 line = input(prompt)
216 except EOFError:
217 print("closing..")
218 return
219 i.runcode(line)
220
221
222class RpcTimeoutError(Exception):

Callers

nothing calls this directly

Calls 1

runMethod · 0.95

Tested by

no test coverage detected