Skip to content

Commit 08d0b1f

Browse files
C10H14N2O5Soulter
andauthored
feat: log effective Windows local runtime shell (#9648)
* feat: log effective Windows local runtime shell * chore: remove Windows shell logging tests --------- Co-authored-by: Soulter <905617992@qq.com>
1 parent 3bb5660 commit 08d0b1f

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

astrbot/core/computer/computer_client.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import json
33
import os
44
import shutil
5+
import sys
56
import time
67
import uuid
78
from dataclasses import dataclass
@@ -16,7 +17,7 @@
1617
)
1718

1819
from .booters.base import ComputerBooter
19-
from .booters.local import LocalBooter
20+
from .booters.local import LocalBooter, resolve_windows_shell
2021

2122
session_booter: dict[str, ComputerBooter] = {}
2223
local_booter: ComputerBooter | None = None
@@ -688,6 +689,11 @@ def get_local_booter() -> ComputerBooter:
688689
global local_booter
689690
if local_booter is None:
690691
local_booter = LocalBooter()
692+
if sys.platform == "win32":
693+
logger.info(
694+
"[Computer] Windows local runtime shell: %s",
695+
resolve_windows_shell(),
696+
)
691697
return local_booter
692698

693699

0 commit comments

Comments
 (0)