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 
working directory's parent directories).  I'd love to see something like 
os.path.abspath(path, logical=True) which would use PWD instead of getcwd() to 
get the current working directories path.  i.e. symlinks are honored within the 
current path. From a language perspective this probably means needing 
os.getpwd() or something similar, that would return the pwd information.

I know pwd isn't always guaranteed to be around, so the failsafe should be to 
return getcwd() in that case, just like os.path.abspath() does now.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue14550>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to