mirror of
https://github.com/AstrBotDevs/AstrBot.git
synced 2026-10-16 15:06:04 +08:00
Fix path separator for remote_zip in computer_client.py (#8182)
* Fix path separator for remote_zip in computer_client.py Ensure remote_zip uses forward slashes for compatibility. * Update astrbot/core/computer/computer_client.py Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> * Update computer_client.py * Update computer_client.py * Update computer_client.py --------- Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
gemini-code-assist[bot]
parent
db0affc982
commit
077d54baaf
@@ -514,7 +514,8 @@ async def _sync_skills_to_sandbox(booter: ComputerBooter) -> None:
|
||||
for skill_name, skill_dir in sync_skill_dirs:
|
||||
shutil.copytree(skill_dir, bundle_root / skill_name)
|
||||
shutil.make_archive(str(zip_base), "zip", str(bundle_root))
|
||||
remote_zip = Path(SANDBOX_SKILLS_ROOT) / "skills.zip"
|
||||
# Force forward slashes for sandbox compatibility.
|
||||
remote_zip = (Path(SANDBOX_SKILLS_ROOT) / "skills.zip").as_posix()
|
||||
logger.info("Uploading skills bundle to sandbox...")
|
||||
await booter.shell.exec(f"mkdir -p {SANDBOX_SKILLS_ROOT}")
|
||||
upload_result = await booter.upload_file(str(zip_path), str(remote_zip))
|
||||
|
||||
Reference in New Issue
Block a user