quickie.context.resolve_wd

quickie.context.resolve_wd(wd: str | Path | None) str

Resolve a working directory value to an absolute path.

Follows the same resolution rules as task working directories:

  • None — uses app.context.wd

  • "." — uses the parent of the tasks module directory

  • "./some/path" — resolved relative to the parent of the tasks module directory

  • Other relative path — joined with app.context.wd

  • Absolute path — used as-is

Parameters:

wd – The working directory value to resolve.

Returns:

An absolute path string.