[issue14550] os.path.abspath() returns physical path, not logical path.

2012-04-11 Thread Craig Sawyer
New submission from Craig Sawyer csaw...@yumaed.org: 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

[issue14550] os.path.abspath() returns physical path, not logical path.

2012-04-11 Thread Craig Sawyer
Craig Sawyer csaw...@yumaed.org 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