MCPcopy Create free account
hub / github.com/a943512/PyAibote / check_process

Method check_process

PyAibote/Tool/UniversalFunction.py:16–20  ·  view source on GitHub ↗
(self, process_name)

Source from the content-addressed store, hash-verified

14 print(f"Failed to report the wrong picture. Please save it yourself ErrorMsg: {e}")
15
16 def check_process(self, process_name):
17 for proc in psutil.process_iter(['pid', 'name']):
18 if process_name == proc.info['name']:
19 return True
20 return False
21
22
23

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected