fix(ollama): os.getuid() 仅 POSIX —— Windows import 崩溃(xiaohe.exe smoke 失败根因)

This commit is contained in:
Zhengshou Lai
2026-08-18 00:56:29 +08:00
parent f14c39d7c0
commit 3d8887bba1
+1 -1
View File
@@ -37,7 +37,7 @@ from myagents.ollama_adapter import listen_url
console = Console() console = Console()
_UID = os.getuid() _UID = os.getuid() if hasattr(os, "getuid") else None # POSIX-only; launchctl paths are macOS
_LOG_DIR = Path.home() / ".xiaohe" / "logs" _LOG_DIR = Path.home() / ".xiaohe" / "logs"