Skip to content

Commit edf9651

Browse files
authored
Update edit.py
1 parent 732eaa6 commit edf9651

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎python_agent_harness/tools/edit.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class Edit(Tool):
117117

118118
def run(self, args: dict, ctx: ToolContext) -> str:
119119
raw = args["path"]
120-
path = os.path.realpath(os.path.abspath(raw))
120+
path = os.path.realpath(os.path.abspath(os.path.expanduser(raw)))
121121
if not os.access(path, os.R_OK):
122122
return f"Error: File or directory {path} is not readable"
123123
new_str = args.get("new_str")

0 commit comments

Comments
 (0)