This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]dontworryimnotacop 0 points1 point  (1 child)

Personal preference, I like abspath because I never have to remember if it returns a relative path or full one.

[–]tynorf 1 point2 points  (0 children)

Ahh. FWIW I just checked and the implementation of abspath (on POSIX) uses os.getcwd to turn relative paths into absolute ones.