Craig Sawyer added the comment:
Antoine,
I see your point about getcwd() not having symlinks, doesn't mean any path
outside of getcwd() might have symlinks, and I agree this is true. I apologize.
As for which one to choose, it should choose based on PWD (i.e. the current
wo
New submission from Craig Sawyer :
we have os.path.abspath() and os.path.realpath(). the difference according to
the documentation is realpath() returns the physical path (i.e. no symlinks in
the path). while abspath() uses getcwd() but because of POSIX.1-2008 (IEEE Std
1003.1-2008) says