>>> Path.cwd() / Path("D:x")
WindowsPath('D:x')
>>> Path("D:x").resolve()
WindowsPath('D:/x')
>>> (Path.cwd() / Path("D:x")).is_absolute()
False
>>> Path("D:x").resolve().is_absolute()
True
I know this comes under the heading of “it’s complicated”, but I’d consider “returns an absolute path” to be a key requirement of any request to make a path absolute ![]()