fix: reading skills on Windows (#6490)
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.
This commit is contained in:
@@ -136,7 +136,7 @@ def _build_skill_read_command_example(path: str) -> str:
|
|||||||
return f"cat {path}"
|
return f"cat {path}"
|
||||||
if _is_windows_prompt_path(path):
|
if _is_windows_prompt_path(path):
|
||||||
command = "type"
|
command = "type"
|
||||||
path_arg = f'"{path}"'
|
path_arg = f'"{os.path.normpath(path)}"'
|
||||||
else:
|
else:
|
||||||
command = "cat"
|
command = "cat"
|
||||||
path_arg = shlex.quote(path)
|
path_arg = shlex.quote(path)
|
||||||
|
|||||||
Reference in New Issue
Block a user