1 parent 732eaa6 commit edf9651Copy full SHA for edf9651
1 file changed
python_agent_harness/tools/edit.py
@@ -117,7 +117,7 @@ class Edit(Tool):
117
118
def run(self, args: dict, ctx: ToolContext) -> str:
119
raw = args["path"]
120
- path = os.path.realpath(os.path.abspath(raw))
+ path = os.path.realpath(os.path.abspath(os.path.expanduser(raw)))
121
if not os.access(path, os.R_OK):
122
return f"Error: File or directory {path} is not readable"
123
new_str = args.get("new_str")
0 commit comments