Skip to content

Commit 78dfe67

Browse files
authored
Update read.py
1 parent 1790ab7 commit 78dfe67

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎python_agent_harness/tools/read.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class Read(Tool):
6767

6868
def run(self, args: dict, ctx: ToolContext) -> str:
6969
path = args["file_path"]
70-
full = os.path.realpath(os.path.abspath(path))
70+
full = os.path.realpath(os.path.abspath(os.path.expanduser(path)))
7171
if os.path.isdir(full):
7272
return f"Error: cannot read {path}: is a directory"
7373
try:

0 commit comments

Comments
 (0)