From 2858562cb437370eb700a8845b045407ad21b443 Mon Sep 17 00:00:00 2001 From: shivashanmugam Date: Tue, 23 Jun 2026 01:28:04 +0530 Subject: [PATCH 1/2] fix: validate sandbox path as POSIX for Windows compatibility (#138) --- src/microbots/extras/mount.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/microbots/extras/mount.py b/src/microbots/extras/mount.py index a36014b2..4c0a2e60 100644 --- a/src/microbots/extras/mount.py +++ b/src/microbots/extras/mount.py @@ -1,6 +1,6 @@ from dataclasses import dataclass, field from enum import StrEnum -from pathlib import Path +from pathlib import PurePosixPath from microbots.constants import PermissionLabels, PermissionMapping from microbots.utils.path import PathInfo, get_path_info, ends_with_separator @@ -57,7 +57,12 @@ def __post_init__(self): self.permission_key = PermissionMapping.MAPPING.get(self.permission) self.host_path_info = get_path_info(self.host_path) - sandbox_path = Path(self.sandbox_path) + # The sandbox is always a POSIX (Linux) container, so the sandbox + # path must be interpreted as a POSIX path regardless of the host OS. + # Using pathlib.Path here would resolve to WindowsPath on Windows, + # which incorrectly reports POSIX absolute paths like "/var/log" as + # relative (Windows requires a drive letter for an absolute path). + sandbox_path = PurePosixPath(self.sandbox_path) # Validate that sandbox_path is absolute if not sandbox_path.is_absolute(): From b7f8f3ddd83dec9699fbb66c95199d0775bc01c8 Mon Sep 17 00:00:00 2001 From: shivashanmugam Date: Tue, 23 Jun 2026 01:35:34 +0530 Subject: [PATCH 2/2] fix : numpy guide for changed file --- src/microbots/extras/mount.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/microbots/extras/mount.py b/src/microbots/extras/mount.py index 4c0a2e60..7131bb2c 100644 --- a/src/microbots/extras/mount.py +++ b/src/microbots/extras/mount.py @@ -3,7 +3,7 @@ from pathlib import PurePosixPath from microbots.constants import PermissionLabels, PermissionMapping -from microbots.utils.path import PathInfo, get_path_info, ends_with_separator +from microbots.utils.path import PathInfo, ends_with_separator, get_path_info class MountType(StrEnum):