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

Function get_cpu_architecture

utils/commons.py:98–106  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96 self.active_sessions.remove(session)
97
98def get_cpu_architecture():
99 try:
100 cpu_arch = platform.platform().lower()
101 if "64bit" in cpu_arch and "macos" in cpu_arch:
102 return "MacOS x64"
103 return "Windows" # 默认返回Windows
104 except Exception as e:
105 print(Color.RED, f"[-] Error detecting CPU architecture: {e} ", Color.END)
106 return "Windows"
107
108# 主函数示例
109if __name__ == "__main__":

Callers 1

load_wechatEx_configsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected