Skip to content

Effort free video editing!

345 B
Raw Blame
import std/[os, strformat]
import ../log
import ../lib/paths

proc absPath*(path: string): AbsPath {.raises: [AutoEditorError].} =
  # absolutePath only fails if the cwd is gone or unreadable; nothing
  # downstream can recover from that.
  try:
    AbsPath(path.absolutePath())
  except CatchableError:
    error &"Cannot resolve path: {path}"