MCPcopy
hub / github.com/JaveleyQAQ/WeChatOpenDevTools-Python / is_wechatEx_process

Method is_wechatEx_process

utils/wechatutils.py:25–27  ·  view source on GitHub ↗
(self, cmdline)

Source from the content-addressed store, hash-verified

23 return versions_list
24
25 def is_wechatEx_process(self, cmdline):
26 process_name = "WeChatAppEx"
27 return cmdline and process_name in cmdline[0] and "--type=" not in ' '.join(cmdline)
28 def get_wechat_pids_and_versions(self):
29 processes = (proc.info for proc in psutil.process_iter(['pid', 'cmdline']))
30 wechatEx_processes = (p for p in processes if self.is_wechatEx_process(p['cmdline']))

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected