From bb5fa5600b3116db058eb710957a039370f0c6e6 Mon Sep 17 00:00:00 2001 From: linzhengtian <907305684@qq.com> Date: Tue, 17 Mar 2026 13:16:59 +0800 Subject: [PATCH] Fix an issue bout reading the skill directory on the Windows system There is an issue with reading the skill directory on the Windows system, which results in a high probability of files under the skill directory being unrecognizable, now fix it. --- astrbot/core/skills/skill_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/astrbot/core/skills/skill_manager.py b/astrbot/core/skills/skill_manager.py index 9bbdb5aee8..6d1c9be8d7 100644 --- a/astrbot/core/skills/skill_manager.py +++ b/astrbot/core/skills/skill_manager.py @@ -128,7 +128,7 @@ def _build_skill_read_command_example(path: str) -> str: return f"cat {path}" if _is_windows_prompt_path(path): command = "type" - path_arg = f'"{path}"' + path_arg = f'"{os.path.normpath(path)}"' else: command = "cat" path_arg = shlex.quote(path)