There was an error while loading. Please reload this page.
1 parent 3bb5660 commit 08d0b1fCopy full SHA for 08d0b1f
1 file changed
astrbot/core/computer/computer_client.py
@@ -2,6 +2,7 @@
2
import json
3
import os
4
import shutil
5
+import sys
6
import time
7
import uuid
8
from dataclasses import dataclass
@@ -16,7 +17,7 @@
16
17
)
18
19
from .booters.base import ComputerBooter
-from .booters.local import LocalBooter
20
+from .booters.local import LocalBooter, resolve_windows_shell
21
22
session_booter: dict[str, ComputerBooter] = {}
23
local_booter: ComputerBooter | None = None
@@ -688,6 +689,11 @@ def get_local_booter() -> ComputerBooter:
688
689
global local_booter
690
if local_booter is None:
691
local_booter = LocalBooter()
692
+ if sys.platform == "win32":
693
+ logger.info(
694
+ "[Computer] Windows local runtime shell: %s",
695
+ resolve_windows_shell(),
696
+ )
697
return local_booter
698
699
0 commit comments