<div dir="ltr">Well, it's already there and it's probably too late to remove it, but introducing the idiom<div><br></div><div><blockquote style="margin:0 0 0 40px;border:none;padding:0px">path_str = getattr(arg, "path", arg)<br></blockquote><br></div><div>was not necessary: you could also write</div><div><br></div><div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>path_str = str(Path(arg))</div></blockquote><br></div><div>which works just as well.</div><div><br></div><div>My 2c.,</div><div><br></div><div>Antony</div></div>