Eric V. Smith <e...@trueblade.com> added the comment: Yes, it's cross platform.
For a plain string version, you can use a utility function: >>> for i in range(n+1): ... path = os.path.dirname(path) ... I'm not sure it's worth adding this to os.path. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33102> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com