from spotregen.gui.model import resolve_path
print(resolve_path("/work/demo", "regen/runs/context.md"))
print(resolve_path("/work/demo", "/tmp/context.md"))/work/demo/regen/runs/context.md
/tmp/context.md
The file a typed path names: ~ is expanded and a relative path is below root.
| Name | Type | Description | Default |
|---|---|---|---|
| root | Path | str | The repository root. | required |
| text | str | What the user typed. | required |
| Name | Type | Description |
|---|---|---|
| Path | Path | An absolute path. |