Rafik Draoui added the comment: Here is a patch with an implementation of os.path.commonpath, along with tests and documentation. At the moment, this is only implemented for POSIX, as I don't feel like I know enough about Windows to tackle drive letters and UNC in paths without spending some more time on it.
This probably needs more tests for corner cases. ---------- nosy: +rafik Added file: http://bugs.python.org/file27883/patch10395 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue10395> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com