From e316409d88716a114eeb28446b9bd2fc942dc23d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 5 Sep 2025 02:28:04 +0000 Subject: [PATCH 1/2] Initial plan From e90f934ba7095686d36b6c46b1dbd199d302d3af Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 5 Sep 2025 02:34:19 +0000 Subject: [PATCH 2/2] Fix get_curdir absolute parameter bug - only call resolve() when absolute=True Co-authored-by: kunkunlin1221 <26329816+kunkunlin1221@users.noreply.github.com> --- capybara/utils/custom_path.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/capybara/utils/custom_path.py b/capybara/utils/custom_path.py index 33dc685..0a32200 100644 --- a/capybara/utils/custom_path.py +++ b/capybara/utils/custom_path.py @@ -20,7 +20,7 @@ def get_curdir( folder (Union[str, Path]): folder path. """ path = Path(path).absolute() if absolute else Path(path) - return path.parent.resolve() + return path.parent.resolve() if absolute else path.parent def rm_path(path: Union[str, Path]):