Skip to content

Commit 86386cd

Browse files
committed
fix CodeQL alert
1 parent 0682f91 commit 86386cd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/scenario_planning.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ def _normalize_pack_id(value: Any) -> str:
3333
def _resolve_workspace_path(candidate: Path) -> Path | None:
3434
try:
3535
workspace_root = WORKSPACE_ROOT.resolve()
36-
raw_path = candidate if candidate.is_absolute() else (workspace_root / candidate)
37-
resolved = raw_path.resolve(strict=False)
36+
raw_path = os.path.normpath(str(candidate if candidate.is_absolute() else (workspace_root / candidate)))
37+
resolved = Path(raw_path).resolve(strict=False)
3838
resolved.relative_to(workspace_root)
3939
return resolved
4040
except (OSError, RuntimeError, ValueError):

0 commit comments

Comments
 (0)