mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-25 00:51:20 +00:00
fix: leading ./ thingy
This commit is contained in:
parent
b7d4ea1550
commit
c5511bbc5a
3 changed files with 4 additions and 2 deletions
|
|
@ -1111,6 +1111,8 @@ def _(rid, params: dict) -> dict:
|
|||
text = f"@{kind}:{rel}{suffix}"
|
||||
elif word.startswith("~"):
|
||||
text = "~/" + os.path.relpath(full, os.path.expanduser("~")) + suffix
|
||||
elif word.startswith("./"):
|
||||
text = "./" + rel + suffix
|
||||
else:
|
||||
text = rel + suffix
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue