Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion capybara/utils/custom_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]):
Expand Down