fix(ollama): os.getuid() 仅 POSIX —— Windows import 崩溃(xiaohe.exe smoke 失败根因)
This commit is contained in:
@@ -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"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user